summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 12:23:16 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 12:23:16 -0500
commit7dca1a04452ca6caf6e230839c48f0f9dd9d67b8 (patch)
tree807b29089283f15a08cf809a1ff2e5984dd725f6 /main.c
parent18fbb21e6b95139a8890ba4a65f4402df128ac84 (diff)
hover colors
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.c b/main.c
index 39e659b..fac2c4e 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,6 @@
/*
@TODO:
- more LSP stuff:
- - hover
- go to definition using LSP
- find usages
- highlight hover range
@@ -1100,8 +1099,12 @@ int main(int argc, char **argv) {
ted->cursor = ted->cursor_move;
SDL_SetWindowTitle(window, ted->window_title);
- SDL_SetCursor(ted->cursor);
-
+ if (ted->cursor) {
+ SDL_SetCursor(ted->cursor);
+ SDL_ShowCursor(SDL_ENABLE);
+ } else {
+ SDL_ShowCursor(SDL_DISABLE);
+ }
// annoyingly, SDL_GL_SwapWindow seems to be a busy loop on my laptop for some reason...
// enforce a framerate of 60. this isn't ideal but SDL_GetDisplayMode is *extremely slow* (250ms), so we don't really have a choice.