Skip to content

Commit 7d24b80

Browse files
Remove Unnecessary Layout Call
1 parent 66e1065 commit 7d24b80

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Sources/CodeEditTextView/TextView/TextView+ReplaceCharacters.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ extension TextView {
4848

4949
textStorage.endEditing()
5050

51-
// Cause a layout pass now that we've finished editing, if there were any edits.
52-
if !ranges.isEmpty {
53-
layout()
54-
}
55-
5651
if !skipUpdateSelection {
5752
selectionManager.notifyAfterEdit()
5853
}

0 commit comments

Comments
 (0)