fix: custom extensions opts for commands (#404)

This commit is contained in:
Raphael
2021-01-08 11:00:45 +08:00
committed by GitHub
parent a089c67483
commit 77d6a74d1e

View File

@@ -41,11 +41,9 @@ local function convert_user_opts(user_opts)
setmetatable(_switch,_switch_metatable) setmetatable(_switch,_switch_metatable)
for key,val in pairs(user_opts) do for key,val in pairs(user_opts) do
if default_opts[key] == nil then if default_opts[key] ~= nil then
print('[Telescope] argument not exists in default options') _switch[type(default_opts[key])](key,val)
return
end end
_switch[type(default_opts[key])](key,val)
end end
end end