diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-19 18:04:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-19 18:04:44 +0800 |
commit | bff91f1e802c56554a2b12fa8d89561610733391 (patch) | |
tree | f356f6a12fe30469c6220c83fe6b48ac46a6c807 /src/method | |
parent | 2566c29c3714cd3db626ebd8b51604b764be9180 (diff) | |
download | lua-language-server-bff91f1e802c56554a2b12fa8d89561610733391.zip |
不用-1
Diffstat (limited to 'src/method')
-rw-r--r-- | src/method/textDocument/definition.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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, }, }, } |