diff options
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/core/completion.lua | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/changelog.md b/changelog.md index 8a6921ac..4798a3dd 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ ## 2.4.8 * `FIX` [#778](https://github.com/sumneko/lua-language-server/issues/778) +* `FIX` [#779](https://github.com/sumneko/lua-language-server/issues/779) * `FIX` [#780](https://github.com/sumneko/lua-language-server/issues/780) ## 2.4.7 diff --git a/script/core/completion.lua b/script/core/completion.lua index 6ec15bcf..cdd01f98 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1218,12 +1218,7 @@ local function tryWord(state, text, 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 |