From 6641dba12a5317511d74e8bc3c49fc0294fb1129 Mon Sep 17 00:00:00 2001 From: max397574 Date: Sat, 22 Jan 2022 17:27:41 +0100 Subject: fix(utils): allow cursor to move to last line --- lua/startup/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3