diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-07-06 18:24:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-07-06 18:24:22 +0800 |
commit | 764cc62a17af3cea9db5ae8bc695c9b9230841ac (patch) | |
tree | 99d36899d813d6f4a41a61f43bd10cc119d51f93 /script/provider/provider.lua | |
parent | 91524a855815c56deeb0246266ce1e18e31b070c (diff) | |
download | lua-language-server-764cc62a17af3cea9db5ae8bc695c9b9230841ac.zip |
fix supporting unicode in signature
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 787cfeb8..7b0bb98b 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -772,8 +772,8 @@ m.register 'textDocument/signatureHelp' { for j, param in ipairs(result.params) do parameters[j] = { label = { - param.label[1], - param.label[2], + converter.len(result.label, 1, param.label[1]), + converter.len(result.label, 1, param.label[2]), } } end |