diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-24 19:48:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-24 19:48:31 +0800 |
commit | d3eb7b1656b243848abe13503faced58db9d0581 (patch) | |
tree | 20da64688c2baddbf960c6935d1096f48c7a1640 /script/core | |
parent | 73877202eca3f7e54d21cd04fa7bcc2daed3377d (diff) | |
download | lua-language-server-d3eb7b1656b243848abe13503faced58db9d0581.zip |
fix completion inside ipairs
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/signature.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/signature.lua b/script/core/signature.lua index 295b5437..21e5759f 100644 --- a/script/core/signature.lua +++ b/script/core/signature.lua @@ -21,7 +21,7 @@ local function findNearCall(uri, ast, pos) and text:sub(src.finish, src.finish) == '}' then return end - if not nearCall or nearCall.start < src.start then + if not nearCall or nearCall.start <= src.start then nearCall = src end end |