We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5f83fa commit ef0d9e2Copy full SHA for ef0d9e2
Tool/Sources/XcodeInspector/SourceEditor.swift
@@ -262,6 +262,7 @@ public extension SourceEditor {
262
countE += line.utf16.count
263
}
264
if cursorRange.end == .outOfScope {
265
+ if range.lowerBound == range.upperBound { return .outOfScope }
266
cursorRange.end = .init(
267
line: lines.endIndex - 1,
268
character: lines.last?.utf16.count ?? 0
0 commit comments