From bff91f1e802c56554a2b12fa8d89561610733391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 19 Nov 2018 18:04:44 +0800 Subject: =?UTF-8?q?=E4=B8=8D=E7=94=A8-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/method/textDocument/definition.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/method') diff --git a/src/method/textDocument/definition.lua b/src/method/textDocument/definition.lua index 9fcd7f18..85655af9 100644 --- a/src/method/textDocument/definition.lua +++ b/src/method/textDocument/definition.lua @@ -27,7 +27,8 @@ return function (lsp, params) }, ['end'] = { line = finish_row - 1, - character = finish_col - 1, + -- 这里不用-1,因为前端期待的是匹配完成后的位置 + character = finish_col, }, }, } -- cgit v1.2.3