From 38b43009f3325328630a4b9ee20d8cb9d8d9faf0 Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 4 Apr 2019 15:32:10 +0800 Subject: =?UTF-8?q?=E5=BF=AB=E9=80=9F=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=B8=8D?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E5=8D=95=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/completion.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server') 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 -- cgit v1.2.3