summaryrefslogtreecommitdiff
path: root/autocomplete.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 11:36:33 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 11:36:33 -0500
commit948decc409bac1e3671afc5d0212b4b35c669b4a (patch)
treeb3d8e128cbfe8928767786a46b91047ac1a5d346 /autocomplete.c
parent1f9cd2a40d72d7982e8a9ff93e5ad432e14accc3 (diff)
more hover
Diffstat (limited to 'autocomplete.c')
-rw-r--r--autocomplete.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/autocomplete.c b/autocomplete.c
index 9166ea1..1271fba 100644
--- a/autocomplete.c
+++ b/autocomplete.c
@@ -288,6 +288,8 @@ static char symbol_kind_icon(SymbolKind k) {
static void autocomplete_frame(Ted *ted) {
Autocomplete *ac = &ted->autocomplete;
+ if (!ac->open) return;
+
TextBuffer *buffer = ted->active_buffer;
Font *font = ted->font;
float char_height = text_font_char_height(font);