summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-09 20:45:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-09 20:45:01 +0800
commit970a8fa3bc196e3ffc37f7c7301627d1206e78b5 (patch)
tree7f47f7084ace7bc4779f00fb8b02b219845871e2 /script/core
parentc0adba340dddaea3ff4aa836a99d1a0baf43594b (diff)
downloadlua-language-server-970a8fa3bc196e3ffc37f7c7301627d1206e78b5.zip
fix #779
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index d834c172..28f785d8 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1232,12 +1232,7 @@ local function tryWord(state, position, triggerCharacter, results)
local word, start = lookBackward.findWord(text, offset)
local startPos
if not word then
- if triggerCharacter == nil then
- word = ''
- startPos = position + 1
- else
- return nil
- end
+ return nil
else
startPos = guide.offsetToPosition(state, start - 1)
end