mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Scroll to cursor after deselecting multi-cursors (close #1460)
This commit is contained in:
parent
11df036b3e
commit
98852b6aaa
@ -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)
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user