We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39e5ae3 commit 80911beCopy full SHA for 80911be
Sources/CodeEditTextView/TextView/TextView+Delete.swift
@@ -51,6 +51,7 @@ extension TextView {
51
) {
52
/// Extend each selection by a distance specified by `destination`, then update both storage and the selection.
53
for textSelection in selectionManager.textSelections {
54
+ guard textSelection.range.isEmpty else { continue }
55
let extendedRange = selectionManager.rangeOfSelection(
56
from: textSelection.range.location,
57
direction: direction,
0 commit comments