summaryrefslogtreecommitdiff
path: root/hover.c
diff options
context:
space:
mode:
Diffstat (limited to 'hover.c')
-rw-r--r--hover.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hover.c b/hover.c
index e9f8e36..9742e58 100644
--- a/hover.c
+++ b/hover.c
@@ -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;