Skip to content

Commit be69b25

Browse files
Adding missing deselect when calling RemoveAllMultiCursors (zyedidia#3428)
This adds missing deselect calls that were present previously for RemoveAllMultiCursors before PR zyedidia#3352
1 parent 21bb61c commit be69b25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/action/command.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ func (h *BufPane) GotoCmd(args []string) {
761761
col = util.Clamp(col-1, 0, util.CharacterCount(h.Buf.LineBytes(line)))
762762

763763
h.RemoveAllMultiCursors()
764+
h.Cursor.Deselect(true)
764765
h.GotoLoc(buffer.Loc{col, line})
765766
}
766767

@@ -779,6 +780,7 @@ func (h *BufPane) JumpCmd(args []string) {
779780
col = util.Clamp(col-1, 0, util.CharacterCount(h.Buf.LineBytes(line)))
780781

781782
h.RemoveAllMultiCursors()
783+
h.Cursor.Deselect(true)
782784
h.GotoLoc(buffer.Loc{col, line})
783785
}
784786

0 commit comments

Comments
 (0)