diff options
author | pommicket <pommicket@gmail.com> | 2023-08-05 10:33:26 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-05 10:33:26 -0400 |
commit | 2cd73992ef519eb1aaf6c83abe87a34dadf7ac31 (patch) | |
tree | 89aa98c9641dd8de2975df6a78a819de1ff38935 /ted.c | |
parent | b3244ce71e137b4a259d78b7dc043beb2a5c2aa9 (diff) |
add some functions for plug-ins
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -38,6 +38,14 @@ static void ted_vset_message(Ted *ted, MessageType type, const char *fmt, va_lis } } +TextBuffer *ted_get_active_buffer(Ted *ted) { + return ted->active_buffer; +} + +void ted_set_window_title(Ted *ted, const char *title) { + strbuf_cpy(ted->window_title, title); +} + bool ted_is_key_down(Ted *ted, SDL_Keycode key) { // not currently used but there might be a reason for it in the future (void)ted; |