Skip to content

Commit 6ed9afa

Browse files
committed
Fix Flaking Test
1 parent 7456734 commit 6ed9afa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/CodeEditTextView/TextView/TextView+Delete.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ extension TextView {
6060
guard extendedRange.location >= 0 else { continue }
6161
textSelection.range.formUnion(extendedRange)
6262
}
63+
selectionManager.textSelections.sort(by: { $0.range.location < $1.range.location })
6364
KillRing.shared.kill(
6465
strings: selectionManager.textSelections.map(\.range).compactMap({ textStorage.substring(from: $0) })
6566
)

0 commit comments

Comments
 (0)