feat: [hx] Alt+s Add cursors with selections for selected lines
This commit is contained in:
parent
6e78564599
commit
b7d1f15eb5
2 changed files with 74 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue