We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c127b47 commit a8a0e9cCopy full SHA for a8a0e9c
Sources/CodeEditTextView/TextView/TextView+Drag.swift
@@ -255,10 +255,10 @@ extension TextView: NSDraggingSource {
255
insertText("") // Replace the selected ranges with nothing
256
}
257
258
- undoManager?.endUndoGrouping()
259
-
260
replaceCharacters(in: [NSRange(location: insertionOffset, length: 0)], with: insertionString)
261
+ undoManager?.endUndoGrouping()
+
262
selectionManager.setSelectedRange(
263
NSRange(location: insertionOffset, length: NSString(string: insertionString).length)
264
)
0 commit comments