Skip to content

Commit 1016d16

Browse files
committed
Fix another line after -Yexplicit-nulls
1 parent 1f63dee commit 1016d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

presentation-compiler/src/main/dotty/tools/pc/completions/CompletionProvider.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class CompletionProvider(
167167
additionalEdits: List[TextEdit] = Nil,
168168
range: Option[LspRange] = None
169169
): CompletionItem =
170-
val oldText = params.text.substring(completionPos.start, completionPos.end)
170+
val oldText = params.text().nn.substring(completionPos.start, completionPos.end)
171171
val editRange = if newText.startsWith(oldText) then completionPos.stripSuffixEditRange
172172
else completionPos.toEditRange
173173

0 commit comments

Comments
 (0)