summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-07 11:57:07 -0500
committerpommicket <pommicket@gmail.com>2023-01-07 11:57:07 -0500
commit57c015b9c87312ae3cc3624e707b86e89618fbfd (patch)
tree93224710a58edc69dd57f30b729a67938f896f78 /ide-autocomplete.c
parentda5a197ea3d6ac8333cb020080205cfd1af530c1 (diff)
oops turns out Hover.range is optional
Diffstat (limited to 'ide-autocomplete.c')
-rw-r--r--ide-autocomplete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ide-autocomplete.c b/ide-autocomplete.c
index 9420387..728a54b 100644
--- a/ide-autocomplete.c
+++ b/ide-autocomplete.c
@@ -460,8 +460,8 @@ void autocomplete_frame(Ted *ted) {
const char *completion = ac->phantom + strlen(word_at_cursor);
if (*completion) {
vec2 pos = buffer_pos_to_pixels(buffer, buffer->cursor_pos);
- vec2 size = text_get_size_vec2(font, completion);
#if 0
+ vec2 size = text_get_size_vec2(font, completion);
// this makes the text below the phantom less visible.
// doesn't look very good, so I'm not doing it.
Rect r = rect(pos, size);