Skip to content

Commit

Permalink
Fix Flaking Test
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoolwinter committed Nov 17, 2024
1 parent 7456734 commit 6ed9afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/CodeEditTextView/TextView/TextView+Delete.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ extension TextView {
guard extendedRange.location >= 0 else { continue }
textSelection.range.formUnion(extendedRange)
}
selectionManager.textSelections.sort(by: { $0.range.location < $1.range.location })
KillRing.shared.kill(
strings: selectionManager.textSelections.map(\.range).compactMap({ textStorage.substring(from: $0) })
)
Expand Down

0 comments on commit 6ed9afa

Please sign in to comment.