invalidate layout display after block range updates to persist HR rendering

This commit is contained in:
jess 2026-04-05 12:08:37 -07:00
parent a72578cce8
commit 4ae9409eff
1 changed files with 3 additions and 0 deletions

View File

@ -1142,6 +1142,9 @@ func updateBlockRanges(for textView: NSTextView) {
} }
lm.blockRanges = blocks lm.blockRanges = blocks
let fullRange = NSRange(location: 0, length: text.length)
lm.invalidateDisplay(forCharacterRange: fullRange)
} }
// MARK: - Syntax Highlighting // MARK: - Syntax Highlighting