summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/searcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index d01e18e0..930a9890 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -663,7 +663,7 @@ function m.searchRefsByID(status, suri, expect, mode)
local function checkForward(uri, id, field)
for forwardID, info in eachForward(nodersMap[uri], id) do
local targetUri, targetID
- if not checkBeforeForward(uri, id, field, info) then
+ if not checkBeforeForward(uri, forwardID, field, info) then
goto RELEASE_THEN_CONTINUE
end
targetUri, targetID = getUriAndID(forwardID)