mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09: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:
@@ -761,6 +761,7 @@ func (h *BufPane) GotoCmd(args []string) {
|
|||||||
col = util.Clamp(col-1, 0, util.CharacterCount(h.Buf.LineBytes(line)))
|
col = util.Clamp(col-1, 0, util.CharacterCount(h.Buf.LineBytes(line)))
|
||||||
|
|
||||||
h.RemoveAllMultiCursors()
|
h.RemoveAllMultiCursors()
|
||||||
|
h.Cursor.Deselect(true)
|
||||||
h.GotoLoc(buffer.Loc{col, line})
|
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)))
|
col = util.Clamp(col-1, 0, util.CharacterCount(h.Buf.LineBytes(line)))
|
||||||
|
|
||||||
h.RemoveAllMultiCursors()
|
h.RemoveAllMultiCursors()
|
||||||
|
h.Cursor.Deselect(true)
|
||||||
h.GotoLoc(buffer.Loc{col, line})
|
h.GotoLoc(buffer.Loc{col, line})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user