summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin
diff options
context:
space:
mode:
authordaangoossens22 <62295482+daangoossens22@users.noreply.github.com>2022-01-28 16:31:39 +0100
committerGitHub <noreply@github.com>2022-01-28 16:31:39 +0100
commit6c275e2f6ae8c68c8bf07ca48ea14af4ced2f803 (patch)
treeb8dfaa9704c688678af05a077503404a404a280a /lua/telescope/builtin
parent2553236fe185a5b0ce61ebc587aee9f65d2d747b (diff)
fix (autocommands): doesn't show all autocommands (#1717)
Diffstat (limited to 'lua/telescope/builtin')
-rw-r--r--lua/telescope/builtin/internal.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua
index e0c5f5e..4765e60 100644
--- a/lua/telescope/builtin/internal.lua
+++ b/lua/telescope/builtin/internal.lua
@@ -1096,7 +1096,8 @@ internal.autocommands = function(opts)
end
if current_ft and cmd then
- source_file, source_lnum = line:match "Last set from (.*) line (.*)"
+ source_file = line:match "Last set from (.*) line %d*$" or line:match "Last set from (.*)$"
+ source_lnum = line:match "line (%d*)$" or "1"
if source_file then
local autocmd = {}
autocmd.event = current_event