From 3c1a0b84d9f6739d0c3194f5c53aa514bf2423de 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, 28 Jul 2021 18:58:10 +0800 Subject: improve --- script/core/searcher.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'script/core') diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 8962cfa7..0346ac94 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -651,7 +651,10 @@ function m.searchRefsByID(status, uri, expect, mode) local tid = id .. (field or '') footprint(status, ('checkGlobal:%s + %s'):format(id, field, tid)) local crossed = {} - if mode == 'def' or mode == 'alldef' or mode == 'field' then + if mode == 'def' + or mode == 'alldef' + or mode == 'field' + or field then for _, guri in collector.each('def:' .. id) do if files.eq(uri, guri) then goto CONTINUE -- cgit v1.2.3