diff options
author | max397574 <[email protected]> | 2021-11-09 13:54:07 +0100 |
---|---|---|
committer | max397574 <[email protected]> | 2021-11-09 13:54:07 +0100 |
commit | 749f9119a85ba918ee95aba87011e8d7a4c9b2df (patch) | |
tree | d7645cdc286de031d54d4c30723b02ece890721d /lua/startup | |
parent | 057100c782754eef102a5062785f731d75996859 (diff) |
fix(cursor): 🐛fixed cursor movement at top of file
Diffstat (limited to 'lua/startup')
-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 9f89b34..1e882bf 100644 --- a/lua/startup/utils.lua +++ b/lua/startup/utils.lua @@ -160,7 +160,7 @@ local function move_up() flag = false return end - set_cursor({ new_cursor_pos[1] + i, column() }) + set_cursor({ new_cursor_pos[1] - 1 + i, column() }) i = i + 1 end end |