From c6f7e473f0ed26ccab57630c546e2e0505e0aa23 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Wed, 9 Jun 2021 17:14:34 -0400 Subject: [PATCH] That's what I get for not testing after a 'simple' refactor. --- data/core/commands/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index ca293393..fff081a9 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -77,7 +77,7 @@ local function split_cursor(direction) end end if not exists and line1 > 1 and line1 < #doc().lines then - table.insert(new_cursors, { line1 - 1, col1 }) + table.insert(new_cursors, { line1 + direction, col1 }) end end for i,v in ipairs(new_cursors) do