summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 14:10:38 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 14:10:38 -0500
commitf791aa01fad7e81223808584212c6a1a4c80ca07 (patch)
treef93d53a62035cdad7f16b97fb28c83c7acfaf14f /ide-hover.c
parentc0d0117a963cf8e4dfb28b919087d8a8ecbbca6e (diff)
finish restructuring
Diffstat (limited to 'ide-hover.c')
-rw-r--r--ide-hover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide-hover.c b/ide-hover.c
index ecca8d8..254f56d 100644
--- a/ide-hover.c
+++ b/ide-hover.c
@@ -120,8 +120,8 @@ void hover_frame(Ted *ted, double dt) {
const u32 *colors = settings->colors;
const char *text = hover->text;
Font *font = ted->font;
- float x = ted->mouse_pos.x, y = ted->mouse_pos.y + font->char_height;
- float char_height = font->char_height;
+ float char_height = text_font_char_height(font);
+ float x = ted->mouse_pos.x, y = ted->mouse_pos.y + char_height;
buffer_highlight_lsp_range(buffer, hover->range);