Skip to content

Commit efeafb0

Browse files
committed
Fix selected content
1 parent 0051a26 commit efeafb0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Tool/Sources/SuggestionBasic/EditorInformation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public struct EditorInformation {
2424

2525
public var selectedContent: String {
2626
if let range = selections.first {
27+
if range.isEmpty { return "" }
2728
let startIndex = min(
2829
max(0, range.start.line),
2930
lines.endIndex - 1

0 commit comments

Comments
 (0)