summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-04-05 19:35:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-04-05 19:35:38 +0800
commit243ffa67e5b3b094365c40b04a1a505a9e73da57 (patch)
treebb128944ca68dd3dcbfe786af42460ae31943c19 /server
parent5d2aee69ef5edd7e3890997cf652cc60737a330f (diff)
downloadlua-language-server-243ffa67e5b3b094365c40b04a1a505a9e73da57.zip
修正一个bug
Diffstat (limited to 'server')
-rw-r--r--server/src/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua
index 94e12db6..a9652d8c 100644
--- a/server/src/core/completion.lua
+++ b/server/src/core/completion.lua
@@ -600,7 +600,7 @@ return function (vm, pos, word, oldText)
searchSpecial(vm, source, word, callback, pos)
searchCallArg(vm, source, word, callback, pos)
searchSource(vm, source, word, callback)
- if not oldText then
+ if not oldText or #list > 0 then
searchAllWords(vm, source, word, callback, pos)
end