diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-09 20:45:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-09 20:45:01 +0800 |
commit | 970a8fa3bc196e3ffc37f7c7301627d1206e78b5 (patch) | |
tree | 7f47f7084ace7bc4779f00fb8b02b219845871e2 /script/core | |
parent | c0adba340dddaea3ff4aa836a99d1a0baf43594b (diff) | |
download | lua-language-server-970a8fa3bc196e3ffc37f7c7301627d1206e78b5.zip |
fix #779
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/completion.lua | 7 |
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 |