Skip to content

Commit

Permalink
Adding missing deselect when calling RemoveAllMultiCursors
Browse files Browse the repository at this point in the history
This adds missing deselect calls that were present previously for
RemoveAllMultiCursors before PR zyedidia#3352
  • Loading branch information
Neko-Box-Coder committed Aug 14, 2024
1 parent 21bb61c commit 4a1f241
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/action/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}

Expand All @@ -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})
}

Expand Down

0 comments on commit 4a1f241

Please # to comment.