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.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 9c0f0faa..1f4091b3 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -820,7 +820,7 @@ function m.searchRefsByID(status, suri, expect, mode)
or mode == 'alldef'
or field
or hasCall(field) then
- for _, guri in ceach('def:' .. id) do
+ for _, guri in ceach(uri, 'def:' .. id) do
if uri == guri then
goto CONTINUE
end
@@ -829,14 +829,14 @@ function m.searchRefsByID(status, suri, expect, mode)
end
elseif mode == 'field'
or mode == 'allfield' then
- for _, guri in ceach('def:' .. id) do
+ for _, guri in ceach(uri, 'def:' .. id) do
if uri == guri then
goto CONTINUE
end
searchID(guri, id, field, uri)
::CONTINUE::
end
- for _, guri in ceach('field:' .. id) do
+ for _, guri in ceach(uri, 'field:' .. id) do
if uri == guri then
goto CONTINUE
end
@@ -844,7 +844,7 @@ function m.searchRefsByID(status, suri, expect, mode)
::CONTINUE::
end
else
- for _, guri in ceach(id) do
+ for _, guri in ceach(uri, id) do
if crossed[guri] then
goto CONTINUE
end
@@ -872,7 +872,7 @@ function m.searchRefsByID(status, suri, expect, mode)
or ignoredIDs[id]
or id == 'dn:string'
or hasCall(field) then
- for _, guri in ceach('def:' .. id) do
+ for _, guri in ceach(uri, 'def:' .. id) do
if uri == guri then
goto CONTINUE
end
@@ -880,7 +880,7 @@ function m.searchRefsByID(status, suri, expect, mode)
::CONTINUE::
end
else
- for _, guri in ceach(id) do
+ for _, guri in ceach(uri, id) do
if crossed[guri] then
goto CONTINUE
end