summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-24 21:56:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-24 21:56:09 +0800
commitba02896e82d515e4f608b43edb99692f96851ea6 (patch)
treef49ea0f0f336c7e2facf747826484adeb617ab89 /script/core
parent3f300fc71445acd56b70ebc10255eab160b9c458 (diff)
downloadlua-language-server-ba02896e82d515e4f608b43edb99692f96851ea6.zip
fix #539
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 2975634c..97984299 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1172,7 +1172,7 @@ local function tryWord(ast, text, offset, triggerCharacter, results)
if not word then
if triggerCharacter == nil then
word = ''
- start = offset
+ start = offset + 1
else
return nil
end