diff options
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/core/completion.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua index b69e19a6..f14ec495 100644 --- a/script-beta/core/completion.lua +++ b/script-beta/core/completion.lua @@ -285,10 +285,13 @@ local function checkTableField(ast, word, start, results) if not source then return end + local used = {} guide.eachSourceType(ast.ast, 'tablefield', function (src) local key = src.field[1] - if matchKey(word, key) + if not used[key] + and matchKey(word, key) and src ~= source then + used[key] = true results[#results+1] = { label = key, kind = ckind.Property, |