From d410fabf1bad3be30973d99e0d6abf1c5e5a6c21 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 27 Nov 2025 20:18:48 +0100 Subject: [PATCH] fix: don't stomp on existing selection when entering helix SEL mode --- src/tui/mode/helix.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/mode/helix.zig b/src/tui/mode/helix.zig index ca9a4f0..f95a93d 100644 --- a/src/tui/mode/helix.zig +++ b/src/tui/mode/helix.zig @@ -287,7 +287,7 @@ const cmds_ = struct { const root = try self.buf_root(); for (self.cursels.items) |*cursel_| { if (cursel_.*) |*cursel| - cursel.selection = Selection.from_cursor_inclusive(&cursel.cursor, root, self.metrics); + _ = cursel.enable_selection_inclusive(root, self.metrics); } } pub const init_helix_select_mode_meta: Meta = .{};