diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/core/completion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua index 613ca062..f9fe7686 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -198,7 +198,7 @@ local function findParentInStringIndex(ast, text, offset) end local function buildFunctionSnip(source, oop) - local name = getName(source):gsub('^.-[$.:]', '') + local name = getName(source):gsub('^.+[$.:]', '') local defs = vm.getDefs(source, 0) local args = '' for _, def in ipairs(defs) do |