summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/searcher.lua17
1 files changed, 10 insertions, 7 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 2097c8fa..52b0b5ea 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -430,7 +430,9 @@ function m.searchRefsByID(status, uri, expect, mode)
if field or mode == 'field' then
searchID('dn:stringlib', field)
end
+ return true
end
+ return false
end
local function checkRequire(requireName, field)
@@ -509,15 +511,16 @@ function m.searchRefsByID(status, uri, expect, mode)
return true
end
- if node.forward then
- checkForward(id, node, field)
- end
- if node.backward then
- checkBackward(id, node, field)
+ local isSepcial = checkSpecial(id, node, field)
+ if not isSepcial then
+ if node.forward then
+ checkForward(id, node, field)
+ end
+ if node.backward then
+ checkBackward(id, node, field)
+ end
end
- checkSpecial(id, node, field)
-
if node.sources then
checkGeneric(node.sources[1], field)
checkENV(node.sources[1], field)