Skip to content

Commit bba57f4

Browse files
Merge branch 'AddMissingDeselect' into dev
2 parents 12d2505 + 4a1f241 commit bba57f4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
> - [Exposing replacement functions for deprecated IOUtil functions #3393](https://github.com/zyedidia/micro/pull/3393)
1313
> - [Adding timeout when fetching plugin & more clear plugin error message #3389](https://github.com/zyedidia/micro/pull/3389)
1414
> - [Adding Jumping to opening and closing brace logic and actions #3384](https://github.com/zyedidia/micro/pull/3384)
15+
> - [Adding missing deselect when calling RemoveAllMultiCursors #3428](https://github.com/zyedidia/micro/pull/3428)
1516
>
1617
> To see the diff between this and upstream master, click [here](https://github.com/zyedidia/micro/compare/master...Neko-Box-Coder:micro-dev:dev)
1718

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)