fix: move_cursor_next_match should mark match as selected

This commit is contained in:
CJ van den Berg 2025-11-10 12:12:20 +01:00
parent 491f40ed96
commit 185e081c7c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -5405,6 +5405,7 @@ pub const Editor = struct {
match_.has_selection = false; match_.has_selection = false;
}; };
primary.selection = match.to_selection(); primary.selection = match.to_selection();
match.has_selection = true;
primary.cursor.move_to(root, match.end.row, match.end.col, self.metrics) catch return; primary.cursor.move_to(root, match.end.row, match.end.col, self.metrics) catch return;
self.clamp(); self.clamp();
} }