diff options
Diffstat (limited to 'script/core/completion/completion.lua')
-rw-r--r-- | script/core/completion/completion.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 800c11a1..680b9a23 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1254,11 +1254,9 @@ local function tryWord(state, position, triggerCharacter, results) checkFunctionArgByDocParam(state, word, startPos, results) else local afterLocal = isAfterLocal(state, startPos) - if triggerCharacter ~= nil then - local stop = checkKeyWord(state, startPos, position, word, hasSpace, afterLocal, results) - if stop then - return - end + local stop = checkKeyWord(state, startPos, position, word, hasSpace, afterLocal, results) + if stop then + return end if not hasSpace then if afterLocal then |