summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-05 10:33:26 -0400
committerpommicket <pommicket@gmail.com>2023-08-05 10:33:26 -0400
commit2cd73992ef519eb1aaf6c83abe87a34dadf7ac31 (patch)
tree89aa98c9641dd8de2975df6a78a819de1ff38935 /ted.c
parentb3244ce71e137b4a259d78b7dc043beb2a5c2aa9 (diff)
add some functions for plug-ins
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index 7c1743b..75713c6 100644
--- a/ted.c
+++ b/ted.c
@@ -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;