From 921dba32430e0c8e13a5195866f294a3f97f3ef6 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Tue, 28 Nov 2023 20:54:11 +0100 Subject: [PATCH] Fix deleting indentation with multiple cursors (#1670) --- data/core/commands/doc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index aa73a2c0..c698d2cc 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -340,10 +340,11 @@ local commands = { local text = dv.doc:get_text(line1, 1, line1, col1) if #text >= indent_size and text:find("^ *$") then dv.doc:delete_to_cursor(idx, 0, -indent_size) - return + goto continue end end dv.doc:delete_to_cursor(idx, translate.previous_char) + ::continue:: end end,