Skip to content

Commit 6155b1d

Browse files
committed
Refine
1 parent 38e0716 commit 6155b1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/completion.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ completion_reply <- function(id, uri, workspace, document, point, capabilities)
504504
init_count <- length(completions)
505505
nmax <- getOption("languageserver.max_completions", 200)
506506

507-
if (length(completions) > nmax) {
507+
if (init_count > nmax) {
508508
isIncomplete <- TRUE
509509
label_text <- vapply(completions, "[[", character(1), "label")
510510
sort_text <- vapply(completions, "[[", character(1), "sortText")

0 commit comments

Comments
 (0)