diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-09-07 16:41:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-09-07 16:41:41 +0800 |
commit | c056f0d309e0d105bbb7447a6d8e377483ada150 (patch) | |
tree | 9a80a6442488082db9fcac8273999499ecba1aff /script/core/hint.lua | |
parent | a815d3f8c22cbbb44c3977cf73f87943283c213c (diff) | |
download | lua-language-server-c056f0d309e0d105bbb7447a6d8e377483ada150.zip |
fix #1530
Diffstat (limited to 'script/core/hint.lua')
-rw-r--r-- | script/core/hint.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua index 767e531e..7897f5c6 100644 --- a/script/core/hint.lua +++ b/script/core/hint.lua @@ -290,7 +290,7 @@ local function semicolonHint(uri, results, start, finish) for i = 1, #src - 1 do local current = src[i] local next = src[i+1] - local left = current.finish + local left = current.range or current.finish local right = next.start local text = subber(left, right) if mode == 'All' then |