Skip to content

Commit

Permalink
fix: keyword_length may be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
uga-rosa committed Jul 18, 2024
1 parent 4286695 commit 7144ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cmp_dictionary/source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function source:complete(request, callback)
end

-- Calls by cmp.complete ignore the keyword_length.
if #req < request.keyword_length then
if request.keyword_length and #req < request.keyword_length then
callback({ items = {}, isIncomplete = true })
return
end
Expand Down

0 comments on commit 7144ce4

Please sign in to comment.