diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-12 17:13:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-12 17:13:04 +0800 |
commit | 894db9dc2125acdfe9ef69759bf7709d25552eef (patch) | |
tree | f0234ff09a6667ea4e41f85a9d8a90caea820a8a /server/src/core/find_source.lua | |
parent | 26acef86a9acef06f63605a2dfff0647f36655de (diff) | |
download | lua-language-server-894db9dc2125acdfe9ef69759bf7709d25552eef.zip |
修正一些bug
Diffstat (limited to 'server/src/core/find_source.lua')
-rw-r--r-- | server/src/core/find_source.lua | 2 |
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) |