From 21eea92e727749ca3f6a5d2f0659f2c38d784c83 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Fri, 1 Jul 2022 18:58:13 +0200 Subject: [PATCH] fix: autocommands regression --- lua/telescope/builtin/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (.*)$"