From c494d52caf48406b109576ff602247c9582e8830 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Wed, 9 Jun 2021 18:08:22 -0400 Subject: [PATCH] Used an inappropriate function in a selection loop. --- 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 fff081a..0157962 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -55,7 +55,7 @@ local function cut_or_copy(delete) if line1 ~= line2 or col1 ~= col2 then local text = doc():get_text(line1, col1, line2, col2) if delete then - doc():delete_to(0) + doc():delete_to_cursor(idx, 0) end full_text = full_text == "" and text or (full_text .. "\n" .. text) doc().cursor_clipboard[idx] = text