summaryrefslogtreecommitdiff
path: root/hover.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 13:44:25 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 13:44:25 -0500
commitca6617873e15abce0641c426f56047202e68b457 (patch)
tree174804dbe556fa5a265e454689c9043ebb3eaac8 /hover.c
parent6e6b407550db47d3f9c85875c0f69444cf640796 (diff)
hover-enabled option
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;