diff options
author | pommicket <pommicket@gmail.com> | 2022-12-29 13:44:25 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-29 13:44:25 -0500 |
commit | ca6617873e15abce0641c426f56047202e68b457 (patch) | |
tree | 174804dbe556fa5a265e454689c9043ebb3eaac8 /hover.c | |
parent | 6e6b407550db47d3f9c85875c0f69444cf640796 (diff) |
hover-enabled option
Diffstat (limited to 'hover.c')
-rw-r--r-- | hover.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -76,6 +76,9 @@ void hover_process_lsp_response(Ted *ted, LSPResponse *response) { } void hover_frame(Ted *ted, double dt) { + const Settings *settings = ted_active_settings(ted); + if (!settings->hover_enabled) + return; Hover *hover = &ted->hover; bool shift_down = SDL_GetKeyboardState(NULL)[SDL_SCANCODE_LSHIFT] @@ -112,7 +115,6 @@ void hover_frame(Ted *ted, double dt) { - const Settings *settings = ted_active_settings(ted); const float padding = settings->padding; const float border = settings->border_thickness; const u32 *colors = settings->colors; |