Workaround for that selection highlight remains between lines

This commit is contained in:
1024jp 2017-09-30 21:13:16 +09:00
parent d3f7bac565
commit 8b96af9b8a
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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