fix: don't stomp on existing selection when entering helix SEL mode

This commit is contained in:
CJ van den Berg 2025-11-27 20:18:48 +01:00
parent eba444c6fc
commit d410fabf1b
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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 = .{};