mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Workaround for that selection highlight remains between lines
This commit is contained in:
parent
d3f7bac565
commit
8b96af9b8a
@ -26,6 +26,7 @@ Develop
|
||||
|
||||
- Fix an issue where the Key Binding setting tables were empty on macOS 10.13 High Sierra.
|
||||
- Fix an issue where current line highlight was occasionally too wide when line height is 1.0.
|
||||
- Fix an issue where text selection highlight could remain between lines.
|
||||
- Fix an issue where the hanging-indent was not updated in specific cases.
|
||||
|
||||
|
||||
|
@ -127,6 +127,10 @@ final class EditorTextView: NSTextView, Themable {
|
||||
|
||||
super.init(coder: coder)
|
||||
|
||||
// workaround for: the text selection highlight can remain between lines (2017-09 macOS 10.13).
|
||||
self.scaleUnitSquare(to: NSSize(width: 1.001, height: 1.001))
|
||||
self.scaleUnitSquare(to: self.convert(.unit, from: nil)) // reset scale
|
||||
|
||||
// setup layoutManager and textContainer
|
||||
let layoutManager = LayoutManager()
|
||||
layoutManager.allowsNonContiguousLayout = true
|
||||
|
Loading…
Reference in New Issue
Block a user