We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaa3e16 commit 0d651efCopy full SHA for 0d651ef
1 file changed
Sources/CodeEditSourceEditor/Controller/TextViewController.swift
@@ -237,10 +237,10 @@ public class TextViewController: NSViewController {
237
/// The column at which to show the reformatting guide
238
public var reformatAtColumn: Int = 80 {
239
didSet {
240
- if let guideView = textView.subviews.first(
241
- where: { $0 is ReformattingGuideView }
242
- ) as? ReformattingGuideView {
+ if let guideView = self.guideView {
243
guideView.setColumn(reformatAtColumn)
+ guideView.updatePosition(in: textView)
+ guideView.needsDisplay = true
244
}
245
246
0 commit comments