Adding missing deselect when calling RemoveAllMultiCursors (#3428)

This adds missing deselect calls that were present previously for
RemoveAllMultiCursors before PR #3352
This commit is contained in:
Neko Box Coder 2024-08-15 15:06:32 +01:00 committed by GitHub
parent 21bb61c5ff
commit be69b2580b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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