diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-04 15:32:10 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-04 15:32:10 +0800 |
commit | 38b43009f3325328630a4b9ee20d8cb9d8d9faf0 (patch) | |
tree | a994104d8c4ab5b09ee188f3773933144477bed2 /server/src/core | |
parent | b7939de55692cb3347d602d4e82a7c46d26cadbe (diff) | |
download | lua-language-server-38b43009f3325328630a4b9ee20d8cb9d8d9faf0.zip |
快速模式下不匹配单词
Diffstat (limited to 'server/src/core')
-rw-r--r-- | server/src/core/completion.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index 83f684f3..94e12db6 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -600,7 +600,9 @@ return function (vm, pos, word, oldText) searchSpecial(vm, source, word, callback, pos) searchCallArg(vm, source, word, callback, pos) searchSource(vm, source, word, callback) - searchAllWords(vm, source, word, callback, pos) + if not oldText then + searchAllWords(vm, source, word, callback, pos) + end if #list == 0 then return nil |