summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-26 21:48:41 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-26 21:48:41 +0800
commit202bc99994db7cf79d04dd56afd1e03743e9b908 (patch)
tree9303c87de9f9f4ce10b59c1f9161da15b0bff870 /script/core
parentf5991c0f4b90c6392d139decfecd00b25d1a2690 (diff)
downloadlua-language-server-202bc99994db7cf79d04dd56afd1e03743e9b908.zip
fix #923
Diffstat (limited to 'script/core')
-rw-r--r--script/core/searcher.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 17e14b9c..eb70c349 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -219,13 +219,13 @@ local function pushResult(status, mode, source, force)
end
end
- local parent = source.parent
- if parent.type == 'return' then
- if source ~= status.source then
- results[#results+1] = source
- return true
- end
- end
+ --local parent = source.parent
+ --if parent.type == 'return' then
+ -- if source ~= status.source then
+ -- results[#results+1] = source
+ -- return true
+ -- end
+ --end
return false
end