From a6d1fe720f06dae2f3ff93c222ccca1be54fd4a0 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Fri, 14 Apr 2023 23:49:26 +0200 Subject: [PATCH] Merge carets after `doc:move-to-{previous,next}-char` (#1462) --- data/core/commands/doc.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/core/commands/doc.lua b/data/core/commands/doc.lua index d9803bce..0530f6e9 100644 --- a/data/core/commands/doc.lua +++ b/data/core/commands/doc.lua @@ -700,6 +700,7 @@ commands["doc:move-to-previous-char"] = function(dv) dv.doc:move_to_cursor(idx, translate.previous_char) end end + dv.doc:merge_cursors() end commands["doc:move-to-next-char"] = function(dv) @@ -710,6 +711,7 @@ commands["doc:move-to-next-char"] = function(dv) dv.doc:move_to_cursor(idx, translate.next_char) end end + dv.doc:merge_cursors() end command.add("core.docview", commands)