Skip to content

Commit 49aee7f

Browse files
committed
Revert Final Changes in Selection Update
1 parent 13a455e commit 49aee7f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sources/CodeEditTextView/TextSelectionManager/TextSelectionManager+Update.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
//
77

88
import Foundation
9-
import AppKit
109

1110
extension TextSelectionManager {
1211
public func didReplaceCharacters(in range: NSRange, replacementLength: Int) {
1312
let delta = replacementLength == 0 ? -range.length : replacementLength
1413
for textSelection in self.textSelections {
1514
if textSelection.range.location > range.max {
1615
textSelection.range.location = max(0, textSelection.range.location + delta)
17-
1816
textSelection.range.length = 0
1917
} else if textSelection.range.intersection(range) != nil
2018
|| textSelection.range == range

0 commit comments

Comments
 (0)