summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/completion.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua
index 455f0600..172f9d6f 100644
--- a/test/crossfile/completion.lua
+++ b/test/crossfile/completion.lua
@@ -108,9 +108,11 @@ function TEST(data)
result.enableCommon = nil
removeMetas(result)
for _, item in ipairs(result) do
- local r = core.resolve(item.id)
- for k, v in pairs(r or {}) do
- item[k] = v
+ if item.id then
+ local r = core.resolve(item.id)
+ for k, v in pairs(r or {}) do
+ item[k] = v
+ end
end
for k in pairs(item) do
if not Cared[k] then