From 4ddf788965b6f43d75d119600ed490e47825dff1 Mon Sep 17 00:00:00 2001 From: sumneko Date: Wed, 17 Apr 2019 10:19:14 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8F=82=E6=95=B0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E8=BE=93=E5=85=A5=E9=80=97=E5=8F=B7=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=8F=90=E7=A4=BA=E4=BD=8D=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/method/textDocument/signatureHelp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/method/textDocument/signatureHelp.lua') diff --git a/server/src/method/textDocument/signatureHelp.lua b/server/src/method/textDocument/signatureHelp.lua index 98d2ea9b..9829917d 100644 --- a/server/src/method/textDocument/signatureHelp.lua +++ b/server/src/method/textDocument/signatureHelp.lua @@ -6,7 +6,7 @@ return function (lsp, params) if not vm then return end - local position = lines:positionAsChar(params.position.line + 1, params.position.character) + local position = lines:position(params.position.line + 1, params.position.character + 1) local hovers = core.signature(vm, position) if not hovers then return -- cgit v1.2.3