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:
Dmytro Maluka
2024-06-15 20:42:50 +02:00
parent aa9c476b1e
commit 5c8bf6b3a6

View File

@@ -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