Skip to content

Commit aa9c476

Browse files
committed
Improve RemoveMultiCursor behavior
If the original selection was not done by the user manually but as a result of the initial SpawnMultiCursor, deselect this original selection if we execute RemoveMultiCursor and there is no multicursor to remove (i.e. the original spawned cursor is the only one). This improves user experience by making RemoveMultiCursor behavior nicely symmetrical to SpawnMultiCursor.
1 parent 2793c37 commit aa9c476

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/action/actions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,6 +2053,7 @@ func (h *BufPane) RemoveMultiCursor() bool {
20532053
h.Buf.UpdateCursors()
20542054
} else if h.multiWord {
20552055
h.multiWord = false
2056+
h.Cursor.Deselect(true)
20562057
} else {
20572058
return false
20582059
}

0 commit comments

Comments
 (0)