fix: use correct direction for selection in move_cursor_prev_word_start
This commit is contained in:
parent
d410fabf1b
commit
0ca1d372f6
1 changed files with 1 additions and 0 deletions
|
|
@ -575,6 +575,7 @@ fn move_cursor_prev_word_start(root: Buffer.Root, cursel: *CurSel, metrics: Buff
|
|||
cursor.move_left(root, metrics) catch {};
|
||||
|
||||
var sel = cursel.to_selection_inclusive(root, metrics);
|
||||
sel.reverse();
|
||||
defer {
|
||||
sel.begin = cursor;
|
||||
cursel.cursor = cursor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue