Fix horizontal scroll when not wrapped (fix #973)

This commit is contained in:
1024jp 2019-06-28 15:02:28 +09:00
parent 3a60003452
commit 2ef8cf1546
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,15 @@
Change Log
==========================
3.7.8 (unreleased)
--------------------------
### Fixes
- Fix an issue where the editor could not scroll horizontally under specific conditions.
3.7.7 (358)
--------------------------

View File

@ -122,6 +122,7 @@ final class EditorTextView: NSTextView, Themable, CurrentLineHighlighting, Multi
// setup layoutManager and textContainer
let textContainer = TextContainer()
textContainer.widthTracksTextView = true
textContainer.isHangingIndentEnabled = defaults[.enablesHangingIndent]
textContainer.hangingIndentWidth = defaults[.hangingIndentWidth]
self.replaceTextContainer(textContainer)