File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Sources/CodeEditSourceEditor Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ public class TextViewController: NSViewController {
230230 coordinators. forEach {
231231 $0. prepareCoordinator ( controller: self )
232232 }
233+ self . textCoordinators = coordinators. map { WeakCoordinator ( $0) }
233234 }
234235
235236 required init ? ( coder: NSCoder ) {
Original file line number Diff line number Diff line change @@ -128,9 +128,6 @@ public struct SourceEditor: NSViewControllerRepresentable {
128128 context. coordinator. isUpdateFromTextView = false
129129 }
130130
131- // Set this no matter what to avoid having to compare object pointers.
132- controller. textCoordinators = coordinators. map { WeakCoordinator ( $0) }
133-
134131 // Do manual diffing to reduce the amount of reloads.
135132 // This helps a lot in view performance, as it otherwise gets triggered on each environment change.
136133 guard !paramsAreEqual( controller: controller, coordinator: context. coordinator) else {
You can’t perform that action at this time.
0 commit comments