Lua: fix autocomplete on nonexisting objects
parent
eb788c68ca
commit
ee246bb997
|
@ -76,6 +76,9 @@ event.listen {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local options = {}
|
local options = {}
|
||||||
|
if not currentValue then
|
||||||
|
return
|
||||||
|
end
|
||||||
for key, val in pairs(currentValue) do
|
for key, val in pairs(currentValue) do
|
||||||
if string.startswith(key, lastProp) and val then
|
if string.startswith(key, lastProp) and val then
|
||||||
if val.call then
|
if val.call then
|
||||||
|
|
Loading…
Reference in New Issue