diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 12:22:14 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 12:22:14 -0500 |
commit | 9844c679b4a4fb42c97f80e5653dea7c73ff0edf (patch) | |
tree | a81c31c76eff99356406cbd7ae75d28b7ff43c05 /ide-autocomplete.c | |
parent | 02ee27233b43eba648e5a9060fe269df963b9844 (diff) |
restructure ide-*.c
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r-- | ide-autocomplete.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c index bec2112..ed9617d 100644 --- a/ide-autocomplete.c +++ b/ide-autocomplete.c @@ -1,3 +1,5 @@ +#include "ted.h" + #define TAGS_MAX_COMPLETIONS 200 // max # of tag completions to scroll through #define AUTOCOMPLETE_NCOMPLETIONS_VISIBLE 10 // max # of completions to show at once @@ -25,7 +27,7 @@ static void autocomplete_complete(Ted *ted, Autocompletion completion) { autocomplete_close(ted); } -static void autocomplete_select_cursor_completion(Ted *ted) { +void autocomplete_select_cursor_completion(Ted *ted) { Autocomplete *ac = &ted->autocomplete; if (ac->open) { size_t nsuggestions = arr_len(ac->suggested); @@ -64,11 +66,11 @@ static void autocomplete_move_cursor(Ted *ted, i32 by) { autocomplete_correct_scroll(ted); } -static void autocomplete_next(Ted *ted) { +void autocomplete_next(Ted *ted) { autocomplete_move_cursor(ted, 1); } -static void autocomplete_prev(Ted *ted) { +void autocomplete_prev(Ted *ted) { autocomplete_move_cursor(ted, -1); } |