diff options
author | pommicket <pommicket@gmail.com> | 2022-12-29 23:13:23 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-29 23:13:23 -0500 |
commit | a0f8332da674d452f7ae4f84f01d4682d464c9b2 (patch) | |
tree | d003832a43f92b8b466815dc3f1354e5b69da11d /main.c | |
parent | adbfd5f248d390ae73eb9da636a457ce770c9ac0 (diff) |
show the wait cursor when waiting for go to definition
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,5 @@ /* @TODO: -- some way of showing that we're currently loading the definition location (different cursor color?) - more LSP stuff: - go to definition using LSP - find usages @@ -587,6 +586,7 @@ int main(int argc, char **argv) { ted->cursor_ibeam = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM); + ted->cursor_wait = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_WAIT); ted->cursor_arrow = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW); ted->cursor_resize_h = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE); ted->cursor_resize_v = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS); @@ -1009,6 +1009,7 @@ int main(int argc, char **argv) { autocomplete_frame(ted); signature_help_frame(ted); hover_frame(ted, frame_dt); + definitions_frame(ted); } else { autocomplete_close(ted); text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", @@ -1161,6 +1162,7 @@ int main(int argc, char **argv) { SDL_FreeCursor(ted->cursor_arrow); SDL_FreeCursor(ted->cursor_ibeam); + SDL_FreeCursor(ted->cursor_wait); SDL_FreeCursor(ted->cursor_resize_h); SDL_FreeCursor(ted->cursor_resize_v); SDL_FreeCursor(ted->cursor_hand); |