From a9ee5321ac037e58dd932d38e30b7fd3541f1331 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 16 Dec 2025 15:07:30 +0100 Subject: [PATCH] fix: don't auto_find on a single space This is rarely useful and feels spammy. --- src/tui/mainview.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tui/mainview.zig b/src/tui/mainview.zig index 59877cd..ecc5878 100644 --- a/src/tui/mainview.zig +++ b/src/tui/mainview.zig @@ -1496,6 +1496,8 @@ pub fn handle_editor_event(self: *Self, _: tp.pid_ref, m: tp.message) tp.result const text = editor.get_selection(sel, self.allocator) catch return self.clear_auto_find(editor); if (text.len == 0) return self.clear_auto_find(editor); + if (text.len == 1 and (text[0] == ' ')) + return self.clear_auto_find(editor); if (!self.is_last_match_text(text)) tp.self_pid().send(.{ "cmd", "find_query", .{ text, "auto_find" } }) catch return; }