Skip to content

Commit ef5567c

Browse files
committed
Merge branch 'ben/text-wrapping-preference' of github.com:ben-p-commits/CodeEditTextView into ben/text-wrapping-preference
2 parents 8f29f3c + af3a6e1 commit ef5567c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/CodeEditTextView/STTextViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
171171
super.viewDidAppear()
172172
}
173173

174+
public func textDidChange(_ notification: Notification) {
175+
self.text.wrappedValue = textView.string
176+
}
177+
174178
// MARK: UI
175179

176180
/// A default `NSParagraphStyle` with a set `lineHeight`

0 commit comments

Comments
 (0)