diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-09 20:45:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-15 13:59:10 +0800 |
commit | 3c563b2efa96407f61ef117102b9b23896a887fc (patch) | |
tree | 77ee3d529cb616bbf14e5f39a75c20cc84dbd829 | |
parent | e271d36bdc3bf2cc0f96e19f74bd861b2cfb177f (diff) | |
download | lua-language-server-3c563b2efa96407f61ef117102b9b23896a887fc.zip |
fix #779
-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 |