summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-20 10:29:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-20 10:29:54 +0800
commite13158e0ad2412358fa186a7292460a4a0602e1f (patch)
treef4f6d70c1962febd71923c4f29a5a922105d9926 /script/core
parent666d25e294d41d7ec7450ff34e5cc3eb1463d3da (diff)
downloadlua-language-server-e13158e0ad2412358fa186a7292460a4a0602e1f.zip
fix
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index a899ec5c..c5a375f5 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -902,7 +902,7 @@ local function checkUri(ast, text, offset, results)
collect[info.expect] = {
textEdit = {
start = source.start + #source[2],
- finish = source.finish - #source[2],
+ finish = offset,
newText = info.expect,
}
}