diff --git a/src/tui/editor.zig b/src/tui/editor.zig index c8f2dc2..a85f13d 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -5405,6 +5405,7 @@ pub const Editor = struct { match_.has_selection = false; }; primary.selection = match.to_selection(); + match.has_selection = true; primary.cursor.move_to(root, match.end.row, match.end.col, self.metrics) catch return; self.clamp(); }