Skip to content

Commit 6dcde78

Browse files
committed
Fix crash
1 parent cc2a9da commit 6dcde78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tool/Sources/Terminal/Terminal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public final class Terminal: TerminalType, @unchecked Sendable {
162162

163163
while let range = buffer.range(of: "\n") {
164164
let line = String(buffer[..<range.lowerBound])
165-
buffer.removeSubrange(buffer.startIndex...range.upperBound)
165+
buffer.removeSubrange(buffer.startIndex..<range.upperBound)
166166
continuation.yield(line)
167167
}
168168
}

0 commit comments

Comments
 (0)