diff options
author | max397574 <[email protected]> | 2022-01-22 17:27:41 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2022-01-22 17:27:41 +0100 |
commit | 6641dba12a5317511d74e8bc3c49fc0294fb1129 (patch) | |
tree | 12f03e84998096c13addd1c6c4948e4eb91c9da8 /lua/startup/utils.lua | |
parent | fefba0a70d8de780e5366e53baea9b4ca63b2698 (diff) |
fix(utils): allow cursor to move to last line
Diffstat (limited to 'lua/startup/utils.lua')
-rw-r--r-- | lua/startup/utils.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/startup/utils.lua b/lua/startup/utils.lua index 1a233d1..328de70 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -455,7 +455,7 @@ local function move_down() return end i = i + 1 - if new_cursor_pos[1] + i >= line_count() then + if new_cursor_pos[1] + i > line_count() then set_cursor(U.cursor_pos) flag = false return |