summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/searcher.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index ad51a412..972350fd 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -641,7 +641,10 @@ end
local function getField(status, source, mode)
if source.type == 'table' then
for _, field in ipairs(source) do
- m.pushResult(status, mode, field)
+ if field.type == 'tablefield'
+ or field.type == 'tableindex' then
+ m.pushResult(status, mode, field)
+ end
end
return
end