diff options
author | pommicket <pommicket@gmail.com> | 2023-08-05 15:25:02 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-05 15:25:02 -0400 |
commit | da966bf4cc547c784c1631451eb2febf5cf75b13 (patch) | |
tree | 6076fbf17ea23724a24c40cbf1cd777a4e1a004e /main.c | |
parent | 4b10cb8f0892a720bd8d7f61b39f5faffc43107c (diff) |
more internalization
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -503,6 +503,9 @@ int main(int argc, char **argv) { autocomplete_init(ted); signature_help_init(ted); usages_init(ted); + highlights_init(ted); + hover_init(ted); + rename_symbol_init(ted); PROFILE_TIME(gl_end) @@ -732,7 +735,7 @@ int main(int argc, char **argv) { buffer_pixels_to_pos(ted->drag_buffer, Vec2(x, y), &pos); buffer_select_to_pos(ted->drag_buffer, pos); } - ted->hover.time = 0.0; + hover_reset_timer(ted); } break; case SDL_KEYDOWN: { SDL_Keycode keycode = event.key.keysym.sym; @@ -1185,13 +1188,13 @@ int main(int argc, char **argv) { build_stop(ted); if (ted->menu) menu_close(ted); - hover_close(ted); + hover_quit(ted); signature_help_quit(ted); autocomplete_quit(ted); + highlights_quit(ted); usages_quit(ted); - highlights_close(ted); session_write(ted); - rename_symbol_clear(ted); + rename_symbol_quit(ted); document_link_clear(ted); for (int i = 0; i < TED_LSP_MAX; ++i) { |