mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix cursor location with ⌘←
(fix #878)
This commit is contained in:
parent
73d6b69e83
commit
0a3c9ab98e
@ -12,6 +12,11 @@ Change Log
|
||||
- [dev] Stop LineNumberView inheriting NSRulerView.
|
||||
|
||||
|
||||
### Fixes
|
||||
|
||||
- Fix the cursor location by changing the selection with shortcut `⌘←`.
|
||||
|
||||
|
||||
|
||||
3.6.7 (301)
|
||||
--------------------------
|
||||
|
@ -569,7 +569,7 @@ final class EditorTextView: NSTextView, CurrentLineHighlighting, Themable {
|
||||
let location = self.locationOfBeginningOfLine()
|
||||
let range = NSRange(location..<location)
|
||||
|
||||
self.selectedRange = range
|
||||
self.setSelectedRange(range, affinity: .downstream, stillSelecting: false)
|
||||
self.scrollRangeToVisible(range)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user