summaryrefslogtreecommitdiff
path: root/ide-autocomplete.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-05-11 12:11:44 -0400
committerpommicket <pommicket@gmail.com>2023-05-11 12:11:54 -0400
commit8f23762128bebda1e8e07058f905363954ac9c61 (patch)
treed1e78fa4020de61b34cf4600bebcf40dc0cc7322 /ide-autocomplete.c
parentba8d08d0eef98e1950f8c96c12fe8de3f0f059ae (diff)
:matching-bracket, fix matching bracket highlighting in some cases
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 db9645c..3d5e24c 100644
--- a/ide-autocomplete.c
+++ b/ide-autocomplete.c
@@ -33,7 +33,7 @@ static bool autocomplete_should_display_phantom(Ted *ted) {
&& !buffer->is_line_buffer
&& buffer_settings(buffer)->phantom_completions
&& is32_word(buffer_char_before_cursor(buffer))
- && !is32_word(buffer_char_after_cursor(buffer));
+ && !is32_word(buffer_char_at_cursor(buffer));
if (!show)
autocomplete_clear_phantom(ac);
return show;