Skip to content

Commit 5c8bf6b

Browse files
committed
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.
1 parent aa9c476 commit 5c8bf6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/buffer/buffer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ func (b *Buffer) ClearCursors() {
10891089
b.cursors = b.cursors[:1]
10901090
b.UpdateCursors()
10911091
b.curCursor = 0
1092-
b.GetActiveCursor().ResetSelection()
1092+
b.GetActiveCursor().Deselect(true)
10931093
}
10941094

10951095
// MoveLinesUp moves the range of lines up one row

0 commit comments

Comments
 (0)