diff options
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | script/provider/provider.lua | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 50685423..5d35d36e 100644 --- a/changelog.md +++ b/changelog.md @@ -3,9 +3,11 @@ ## 3.6.5 * `FIX` [#831] * `FIX` [#1729] +* `FIX` [#1751] [#831]: https://github.com/sumneko/lua-language-server/issues/831 [#1729]: https://github.com/sumneko/lua-language-server/issues/1729 +[#1751]: https://github.com/sumneko/lua-language-server/issues/1751 `2022-11-29` ## 3.6.4 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', |