We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e1e791 commit 7ac2fb3Copy full SHA for 7ac2fb3
1 file changed
Core/Sources/SuggestionWidget/CustomTextEditor.swift
@@ -22,6 +22,7 @@ struct CustomTextEditor: NSViewRepresentable {
22
23
func updateNSView(_ nsView: NSScrollView, context: Context) {
24
let textView = (context.coordinator.theTextView.documentView as! NSTextView)
25
+ guard textView.string != text else { return }
26
textView.string = text
27
}
28
0 commit comments