mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
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:
parent
21bb61c5ff
commit
be69b2580b
@ -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})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user