summaryrefslogtreecommitdiff
path: root/src/method
diff options
context:
space:
mode:
Diffstat (limited to 'src/method')
-rw-r--r--src/method/textDocument/definition.lua3
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,
},
},
}