summaryrefslogtreecommitdiff
path: root/server/src/core/find_source.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-12 17:13:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-12 17:13:04 +0800
commit894db9dc2125acdfe9ef69759bf7709d25552eef (patch)
treef0234ff09a6667ea4e41f85a9d8a90caea820a8a /server/src/core/find_source.lua
parent26acef86a9acef06f63605a2dfff0647f36655de (diff)
downloadlua-language-server-894db9dc2125acdfe9ef69759bf7709d25552eef.zip
修正一些bug
Diffstat (limited to 'server/src/core/find_source.lua')
-rw-r--r--server/src/core/find_source.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/find_source.lua b/server/src/core/find_source.lua
index 52b42501..65df6b95 100644
--- a/server/src/core/find_source.lua
+++ b/server/src/core/find_source.lua
@@ -6,7 +6,7 @@ local function isContainPos(obj, pos)
end
local function isValidSource(source)
- return source.start ~= nil
+ return source.start ~= nil and source.start ~= 0
end
local function findAtPos(sources, pos, level)