Scroll to cursor after deselecting multi-cursors (close #1460)

This commit is contained in:
1024jp 2023-03-18 10:06:47 +09:00
parent 11df036b3e
commit 98852b6aaa
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,10 @@ Change Log
4.5.1-alpha (unreleased)
--------------------------
### Improvements
- Scroll the editor to make the remaining cursor visible when cancelling the multi-cursor editing mode.
4.5.0 (558)

View File

@ -465,6 +465,7 @@ final class EditorTextView: NSTextView, Themable, CurrentLineHighlighting, Multi
// exit multi-cursor mode
if self.hasMultipleInsertions {
self.selectedRange = self.insertionRanges.first!
self.scrollRangeToVisible(self.selectedRange)
return
}