From bd02095a13e059e17a59ec7d271a1fab098c2123 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 18 Jun 2021 23:58:55 -0400 Subject: [PATCH] Fixed minor bugs; swap no longer returns from get. --- data/core/commands/doc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index b428cc74..2a3d608f 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -170,7 +170,7 @@ local commands = { ["doc:select-lines"] = function() for idx, line1, _, line2 in doc():get_selections(true) do append_line_if_last_line(line2) - doc():set_selections(idx, line1, 1, line2 + 1, 1, swap) + doc():set_selections(idx, line1, 1, line2 + 1, 1) end end, @@ -221,7 +221,7 @@ local commands = { local text = doc():get_text(line1, 1, line2 + 1, 1) doc():insert(line2 + 1, 1, text) local n = line2 - line1 + 1 - doc():set_selections(idx, line1 + n, col1, line2 + n, col2, swap) + doc():set_selections(idx, line1 + n, col1, line2 + n, col2) end end,