Skip to content

Commit

Permalink
Fix crash in Coordinator.swift (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjvidal authored Nov 16, 2023
1 parent 19cb92c commit 1b3b5c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/NeonPlugin/Coordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public class Coordinator {
}

return tsClient.tokenProvider(with: highlightsQuery) { range, _ in
textContentManager.attributedString(in: NSTextRange(range, provider: textContentManager))?.string
guard range.isEmpty == false else { return nil }
return textContentManager.attributedString(in: NSTextRange(range, provider: textContentManager))?.string
}
}

Expand Down

0 comments on commit 1b3b5c0

Please sign in to comment.