diff options
Diffstat (limited to 'script/core/completion')
-rw-r--r-- | script/core/completion/completion.lua | 4 | ||||
-rw-r--r-- | script/core/completion/postfix.lua | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index dadc46ca..ba2b0efc 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -2036,7 +2036,9 @@ local function tryCompletions(state, position, triggerCharacter, results) tryComment(state, position, results) return end - postfix(state, position, results) + if postfix(state, position, results) then + return + end trySpecial(state, position, results) tryCallArg(state, position, results) tryTable(state, position, results) diff --git a/script/core/completion/postfix.lua b/script/core/completion/postfix.lua index a47ff070..434c2a82 100644 --- a/script/core/completion/postfix.lua +++ b/script/core/completion/postfix.lua @@ -193,7 +193,7 @@ return function (state, position, results) if symbol == config.get 'Lua.completion.postfix' then local wordPosition = guide.offsetToPosition(state, offset - 1) checkPostFix(state, word or '', wordPosition, position, results) - return true + return symbol ~= '.' and symbol ~= ':' end return false end |