From 243ffa67e5b3b094365c40b04a1a505a9e73da57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 5 Apr 2019 19:35:38 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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 -- cgit v1.2.3