fix: auto_find should always clear last_match_text

This commit is contained in:
CJ van den Berg 2025-11-17 19:52:26 +01:00
parent f6d1f27337
commit 54c68df967
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 4 additions and 7 deletions

View file

@ -1951,12 +1951,9 @@ pub const Editor = struct {
self.match_done_token = self.match_token;
}
pub fn clear_matches_if_type(self: *Self, match_type: Match.Type) bool {
if (self.match_type == match_type) {
pub fn clear_matches_if_type(self: *Self, match_type: Match.Type) void {
if (self.match_type == match_type)
self.clear_matches();
return true;
}
return false;
}
pub fn sort_matches(self: *Self) void {