diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index 2cae23f..4277e2e 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -1189,7 +1189,7 @@ internal.autocommands = function(opts) return false end local val = selection.value - local group_name = val.group_name ~= "" or "" + local group_name = val.group_name ~= "" and val.group_name or "" local output = vim.fn.execute("verb autocmd " .. group_name .. " " .. val.event .. " " .. val.pattern, "silent") for line in output:gmatch "[^\r\n]+" do local source_file = line:match "Last set from (.*) line %d*$" or line:match "Last set from (.*)$"