diff options
Diffstat (limited to 'server/src')
-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 |