diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 1fde100..e8fe901 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -6954,7 +6954,9 @@ pub const EditorWidget = struct { switch (self.editor.match_type) { .find, .auto_find => return, .highlight_references => { - if (self.editor.match_at_cursor(primary.cursor) == null) { + if (self.editor.match_at_cursor(primary.cursor)) |_| { + return; + } else { self.editor.cancel_all_matches(); tui.need_render(); }