fix: prevent different match types from cancelling each other out

This commit is contained in:
CJ van den Berg 2025-11-10 13:55:47 +01:00
parent 7b9a4071c8
commit 36c975dc20
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 46 additions and 21 deletions

View file

@ -91,7 +91,7 @@ fn flush_input(self: *Self) !void {
const primary = self.editor.get_primary();
primary.selection = null;
primary.cursor = self.start_cursor;
try self.editor.find_in_buffer(self.input_.items);
try self.editor.find_in_buffer(self.input_.items, .find);
} else {
self.editor.get_primary().selection = null;
self.editor.init_matches_update();