fix(commands): E5108 in getcompletions (#207)

This commit is contained in:
tzachar 2022-12-28 18:39:31 +02:00 committed by GitHub
parent 0b1e083937
commit acd6697d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ M.commands = {
} }
function M.complete(cmd, prefix) function M.complete(cmd, prefix)
if not ViewConfig.commands[cmd].plugins then if not (ViewConfig.commands[cmd] or {}).plugins then
return return
end end
---@type string[] ---@type string[]