diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-09 16:01:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-09 16:22:45 +0800 |
commit | 3eb1852a40f1eaf19331e091fe835d92a396d15f (patch) | |
tree | 50ff9d218805d6888260dbc80932dcc2543c333b /script/provider/provider.lua | |
parent | 6a9530c46fe7dfbc1b03270ba67fe0a86833b719 (diff) | |
download | lua-language-server-3eb1852a40f1eaf19331e091fe835d92a396d15f.zip |
`activeParameter` should be uinteter
#1751
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index ede4039e..d7c5c655 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -797,7 +797,7 @@ m.register 'textDocument/signatureHelp' { infos[i] = { label = result.label, parameters = parameters, - activeParameter = result.index - 1, + activeParameter = math.max(0, result.index - 1), documentation = result.description and { value = tostring(result.description), kind = 'markdown', |