diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-05 11:27:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-05 11:27:05 +0800 |
commit | 9b7a246d397aff61bc29837c40a1317ff18c7887 (patch) | |
tree | 7a2f18d7dd0b590a3aee32cdcaaa0d4bfb91759f /server-beta/src/core | |
parent | 8f505a0b999d1432dfc107133e7ac2ba591cbed2 (diff) | |
download | lua-language-server-9b7a246d397aff61bc29837c40a1317ff18c7887.zip |
支持重定义局部变量
Diffstat (limited to 'server-beta/src/core')
-rw-r--r-- | server-beta/src/core/diagnostics/redefined-local.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/core/diagnostics/redefined-local.lua b/server-beta/src/core/diagnostics/redefined-local.lua index a1b0e77a..f6176794 100644 --- a/server-beta/src/core/diagnostics/redefined-local.lua +++ b/server-beta/src/core/diagnostics/redefined-local.lua @@ -13,7 +13,7 @@ return function (uri, callback) or name == '_ENV' then return end - local exist = guide.getLocal(source, name, source.start) + local exist = guide.getLocal(source, name, source.start-1) if exist then callback { start = source.start, |