summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/searcher.lua')
-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 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