From 749f9119a85ba918ee95aba87011e8d7a4c9b2df Mon Sep 17 00:00:00 2001 From: max397574 Date: Tue, 9 Nov 2021 13:54:07 +0100 Subject: =?UTF-8?q?fix(cursor):=20=F0=9F=90=9Bfixed=20cursor=20movement=20?= =?UTF-8?q?at=20top=20of=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/startup/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/startup/utils.lua') 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 -- cgit v1.2.3