From b1c58cdb05a906eb7e8c58d19288c5d83191a67b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 16 Jun 2021 20:07:03 +0800 Subject: fix --- script/core/searcher.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'script') 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 -- cgit v1.2.3