From be69b2580b6f35f2fda38f92fbbc6869a216044b Mon Sep 17 00:00:00 2001 From: Neko Box Coder <93885501+Neko-Box-Coder@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:06:32 +0100 Subject: [PATCH] Adding missing deselect when calling RemoveAllMultiCursors (#3428) This adds missing deselect calls that were present previously for RemoveAllMultiCursors before PR #3352 --- internal/action/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/action/command.go b/internal/action/command.go index 59e89e49..f88660da 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -761,6 +761,7 @@ func (h *BufPane) GotoCmd(args []string) { col = util.Clamp(col-1, 0, util.CharacterCount(h.Buf.LineBytes(line))) h.RemoveAllMultiCursors() + h.Cursor.Deselect(true) h.GotoLoc(buffer.Loc{col, line}) } @@ -779,6 +780,7 @@ func (h *BufPane) JumpCmd(args []string) { col = util.Clamp(col-1, 0, util.CharacterCount(h.Buf.LineBytes(line))) h.RemoveAllMultiCursors() + h.Cursor.Deselect(true) h.GotoLoc(buffer.Loc{col, line}) }