From 4ae9409effc5820653a874f484e9a31918aacaa8 Mon Sep 17 00:00:00 2001 From: jess Date: Sun, 5 Apr 2026 12:08:37 -0700 Subject: [PATCH] invalidate layout display after block range updates to persist HR rendering --- src/EditorView.swift | 3 +++ 1 file changed, 3 insertions(+) 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