From ba5289dc75b6ffa0f99b08a08af32cfade0b0462 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Thu, 17 Mar 2022 16:57:18 -0400 Subject: [PATCH] Typo. --- data/core/commands/doc.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index 81592b66..d80c4641 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -522,10 +522,9 @@ local commands = { ["doc:split-cursor"] = function(x, y, clicks) local line, col = dv():resolve_screen_position(x, y) local removal_target = nil - for idx, line1, col1 in doc():get_selections(true) do - if line1 == line and col1 == col and #doc().selections > 4 then - removal_target = idx - end + for idx, line1, col1 in doc():get_selections(true) do + if line1 == line and col1 == col and #doc().selections > 4 then + removal_target = idx end end if removal_target then