summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua
index c8147f9e..0c3a0c71 100644
--- a/server/src/core/completion.lua
+++ b/server/src/core/completion.lua
@@ -552,7 +552,7 @@ local function searchCallArg(vm, source, word, callback, pos)
if enum.name == name and enum.enum then
if matchKey(word, enum.enum) then
local label, textEdit
- if source.type ~= arg.type then
+ if source.type ~= (arg and arg.type) then
label = ('%q'):format(enum.enum)
end
if source.type ~= 'call' then