diff --git a/src/tui/mode/helix.zig b/src/tui/mode/helix.zig index f95a93d..5036864 100644 --- a/src/tui/mode/helix.zig +++ b/src/tui/mode/helix.zig @@ -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;