From 35866009a76991fbf9f110d3ec6071b27b8bc706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 17 Jun 2021 21:45:26 +0800 Subject: some fix --- script/core/searcher.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'script/core/searcher.lua') diff --git a/script/core/searcher.lua b/script/core/searcher.lua index dd4e4730..74e57736 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -369,6 +369,9 @@ function m.searchRefsByID(status, uri, expect, mode) searchID(newID) end + local ftag = {} + local btag = {} + local function checkThenPushTag(ward, tag) if not tag then return true @@ -376,11 +379,11 @@ function m.searchRefsByID(status, uri, expect, mode) local checkTags local pushTags if ward == 'forward' then - checkTags = status.btag - pushTags = status.ftag + checkTags = btag + pushTags = ftag else - checkTags = status.ftag - pushTags = status.btag + checkTags = ftag + pushTags = btag end if checkTags[tag] and checkTags[tag] > 0 then return false @@ -395,9 +398,9 @@ function m.searchRefsByID(status, uri, expect, mode) end local popTags if ward == 'forward' then - popTags = status.ftag + popTags = ftag else - popTags = status.btag + popTags = btag end popTags[tag] = popTags[tag] - 1 end -- cgit v1.2.3