mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
Improve RemoveAllMultiCursors behavior
Use Deselect() in order to place the cursor at the beginning of the selection, not at the end of it, and to refresh its LastVisualX.
This commit is contained in:
@@ -1089,7 +1089,7 @@ func (b *Buffer) ClearCursors() {
|
||||
b.cursors = b.cursors[:1]
|
||||
b.UpdateCursors()
|
||||
b.curCursor = 0
|
||||
b.GetActiveCursor().ResetSelection()
|
||||
b.GetActiveCursor().Deselect(true)
|
||||
}
|
||||
|
||||
// MoveLinesUp moves the range of lines up one row
|
||||
|
||||
Reference in New Issue
Block a user