diff --git a/src/EditorView.swift b/src/EditorView.swift index 51529ae..525cda1 100644 --- a/src/EditorView.swift +++ b/src/EditorView.swift @@ -1142,6 +1142,9 @@ func updateBlockRanges(for textView: NSTextView) { } lm.blockRanges = blocks + + let fullRange = NSRange(location: 0, length: text.length) + lm.invalidateDisplay(forCharacterRange: fullRange) } // MARK: - Syntax Highlighting