diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-07-01 18:58:13 +0200 |
|---|---|---|
| committer | Simon Hauser <Simon-Hauser@outlook.de> | 2022-07-01 18:58:13 +0200 |
| commit | 21eea92e727749ca3f6a5d2f0659f2c38d784c83 (patch) | |
| tree | 0f035eac83372939fc4899c6a2b65a26f588fa9c /lua | |
| parent | ef9137d85c935b83ec513db23214c7d9a0bd2b45 (diff) | |
fix: autocommands regression
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin/internal.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 ~= "<anonymous>" or "" + local group_name = val.group_name ~= "<anonymous>" 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 (.*)$" |
