We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0051a26 commit efeafb0Copy full SHA for efeafb0
1 file changed
Tool/Sources/SuggestionBasic/EditorInformation.swift
@@ -24,6 +24,7 @@ public struct EditorInformation {
24
25
public var selectedContent: String {
26
if let range = selections.first {
27
+ if range.isEmpty { return "" }
28
let startIndex = min(
29
max(0, range.start.line),
30
lines.endIndex - 1
0 commit comments