mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
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.
This commit is contained in:
@@ -2053,6 +2053,7 @@ func (h *BufPane) RemoveMultiCursor() bool {
|
||||
h.Buf.UpdateCursors()
|
||||
} else if h.multiWord {
|
||||
h.multiWord = false
|
||||
h.Cursor.Deselect(true)
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user