summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-12 20:58:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-12 20:58:33 +0800
commit49b0244734a579036c1d3f318ce435a94974c038 (patch)
tree936e78c91cc824cb6fc00e4b694f96dcd13295db /script/core/searcher.lua
parent813da76cc7f899d7a0eca5afb0f224cd64eaaab0 (diff)
downloadlua-language-server-49b0244734a579036c1d3f318ce435a94974c038.zip
resolve pcall
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r--script/core/searcher.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index fc1c08d1..c869f456 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -95,6 +95,11 @@ function m.pushResult(status, mode, source)
results[#results+1] = source
end
end
+ if parent.type == 'return' then
+ if linker.getID(source) ~= status.id then
+ results[#results+1] = source
+ end
+ end
elseif mode == 'field' then
end
end