diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-25 14:28:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-25 14:28:32 +0800 |
commit | d11363524b9d7a98289defb77733d1f16ce381d8 (patch) | |
tree | 035e7915578ca9717ab2a014e0a1b34dd3c4b730 /server/src/matcher/definition.lua | |
parent | fed7e101b8815763702b091b925d35908fd1162a (diff) | |
download | lua-language-server-d11363524b9d7a98289defb77733d1f16ce381d8.zip |
修正某些情况下无法跳转的BUG
Diffstat (limited to 'server/src/matcher/definition.lua')
-rw-r--r-- | server/src/matcher/definition.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua index 18804516..b4a19b55 100644 --- a/server/src/matcher/definition.lua +++ b/server/src/matcher/definition.lua @@ -22,6 +22,12 @@ local function parseResultAcrossUri(positions, vm, result) end end end + if #positions == 0 then + positions[#positions+1] = { + 0, 0, + result.value.uri, + } + end end local function parseResult(vm, result) |