Skip to content

Commit

Permalink
Fix the downward-action issue in vi mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kandu committed Aug 9, 2023
1 parent f6b1940 commit d5355bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lTerm_vi.ml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ module Query = struct
let cursor= Zed_edit.cursor ctx in
let count= Zed_lines.count lines in
if index = Zed_lines.count lines then
Zed_rope.length text - 1
max 0 (Zed_rope.length text - 1)
else begin
let stop =
if index + delta >= count then
Expand Down

0 comments on commit d5355bf

Please sign in to comment.