feat: [hx] Alt+s Add cursors with selections for selected lines

This commit is contained in:
Igor Támara 2025-11-06 20:42:11 -05:00 committed by CJ van den Berg
parent 6e78564599
commit b7d1f15eb5
2 changed files with 74 additions and 1 deletions

View file

@ -4308,7 +4308,7 @@ pub const Editor = struct {
return sel;
}
fn select_line_at_cursor(self: *Self, root: Buffer.Root, cursel: *CurSel, mode: enum { include_eol, exclude_eol, hold_cursor }) !void {
pub fn select_line_at_cursor(self: *Self, root: Buffer.Root, cursel: *CurSel, mode: enum { include_eol, exclude_eol, hold_cursor }) !void {
const sel = try cursel.enable_selection(root, self.metrics);
sel.normalize();
try move_cursor_begin(root, &sel.begin, self.metrics);