diff options
author | max397574 <[email protected]> | 2022-01-23 20:06:37 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2022-01-23 20:06:37 +0100 |
commit | 096fe57a11ded9b22a4311b41d12b1f6d1008409 (patch) | |
tree | a85412501b10ef7da54b67ea72bfeab4e0515bc4 /lua | |
parent | 6641dba12a5317511d74e8bc3c49fc0294fb1129 (diff) |
fix(utils): fix cursor movement at eof
Diffstat (limited to 'lua')
-rw-r--r-- | lua/startup/utils.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index 328de70..fc3cabe 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -446,6 +446,10 @@ local function move_down() end else set_cursor(U.cursor_pos) + if new_cursor_pos[1] == line_count() then + flag = false + return + end i = 1 end while true do |