Skip to content

Commit 41dfb71

Browse files
committed
check nil
1 parent 05b2d2f commit 41dfb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/core/completion/completion.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ local function findNearestTable(state, position)
130130
end
131131
end
132132
if field.type == 'tableindex' then
133-
if field.index.type == 'string' then
133+
if field.index and field.index.type == 'string' then
134134
if field.index.finish >= position then
135135
return source
136136
else

0 commit comments

Comments
 (0)