Skip to content

Commit 0fd187d

Browse files
committed
Update checking nmax
1 parent 2c0e41f commit 0fd187d

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
@@ -505,7 +505,7 @@ completion_reply <- function(id, uri, workspace, document, point, capabilities)
505505
init_count <- length(completions)
506506
nmax <- getOption("languageserver.max_completions", 200)
507507

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

0 commit comments

Comments
 (0)