Skip to content

Commit 7493f5f

Browse files
committed
Only suggest string keys
1 parent a084f4d commit 7493f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SciTE/LuaExtension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ function GetAutoComplete(object, onlyFuncs)
15941594
local function GetKeys(tbl, list, onlyFuncs)
15951595
if type(tbl) == "table" then
15961596
for k,v in pairs(tbl) do
1597-
if not onlyFuncs or type(v) == "function" then
1597+
if (type(k) == "string") and (not onlyFuncs or type(v) == "function") then
15981598
list[#list + 1] = k
15991599
end
16001600
end

0 commit comments

Comments
 (0)