fix (autocommands): doesn't show all autocommands (#1717)

This commit is contained in:
daangoossens22
2022-01-28 16:31:39 +01:00
committed by GitHub
parent 2553236fe1
commit 6c275e2f6a

View File

@@ -1096,7 +1096,8 @@ internal.autocommands = function(opts)
end end
if current_ft and cmd then 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 if source_file then
local autocmd = {} local autocmd = {}
autocmd.event = current_event autocmd.event = current_event