File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/CodeEditSourceEditor/Highlighting Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ extension Highlighter: NSTextStorageDelegate {
201201extension Highlighter : StyledRangeContainerDelegate {
202202 func styleContainerDidUpdate( in range: NSRange ) {
203203 guard let textView, let attributeProvider else { return }
204- // textView.layoutManager.beginTransaction()
204+ textView. layoutManager. beginTransaction ( )
205205 textView. textStorage. beginEditing ( )
206206
207207 let storage = textView. textStorage
@@ -216,8 +216,8 @@ extension Highlighter: StyledRangeContainerDelegate {
216216 }
217217
218218 textView. textStorage. endEditing ( )
219- // textView.layoutManager.endTransaction()
220- // textView.layoutManager.invalidateLayoutForRange(range)
219+ textView. layoutManager. endTransaction ( )
220+ textView. layoutManager. invalidateLayoutForRange ( range)
221221 }
222222}
223223
You can’t perform that action at this time.
0 commit comments