summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-04 15:32:10 +0800
committersumneko <sumneko@hotmail.com>2019-04-04 15:32:10 +0800
commit38b43009f3325328630a4b9ee20d8cb9d8d9faf0 (patch)
treea994104d8c4ab5b09ee188f3773933144477bed2 /server
parentb7939de55692cb3347d602d4e82a7c46d26cadbe (diff)
downloadlua-language-server-38b43009f3325328630a4b9ee20d8cb9d8d9faf0.zip
快速模式下不匹配单词
Diffstat (limited to 'server')
-rw-r--r--server/src/core/completion.lua4
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