We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b0c29e commit 013566bCopy full SHA for 013566b
Sources/CodeEditTextView/TextSelectionManager/TextSelectionManager.swift
@@ -188,6 +188,16 @@ public class TextSelectionManager: NSObject {
188
if didUpdate {
189
delegate?.setNeedsDisplay()
190
cursorTimer.resetTimer()
191
+ resetSystemCursorTimers()
192
+ }
193
194
+
195
+ private func resetSystemCursorTimers() {
196
+ guard #available(macOS 14, *) else { return }
197
+ for cursorView in textSelections.compactMap({ $0.view as? NSTextInsertionIndicator }) {
198
+ let frame = cursorView.frame
199
+ cursorView.frame = .zero
200
+ cursorView.frame = frame
201
}
202
203
0 commit comments