fix: disambiguate find and find_query commands

This commit is contained in:
CJ van den Berg 2024-08-18 22:03:17 +02:00
parent ea31e414ee
commit 2d9e66b534
2 changed files with 2 additions and 2 deletions

View file

@ -501,7 +501,7 @@ pub fn handle_editor_event(self: *Self, _: tp.pid_ref, m: tp.message) tp.result
if (text.len == 0)
return self.clear_auto_find(editor);
if (!self.is_last_match_text(text)) {
tp.self_pid().send(.{ "cmd", "find", .{text} }) catch return;
tp.self_pid().send(.{ "cmd", "find_query", .{text} }) catch return;
}
}
return;