fix(gen_vimvim): correctly add aliases to vimAutoEvent (#23429)

close #23424
This commit is contained in:
Eisuke Kawashima 2023-05-02 16:16:52 +09:00 committed by GitHub
parent 22170efb47
commit 86c9d8b53c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,13 +112,12 @@ for _, au in ipairs(auevents.events) do
w(' ' .. au)
end
end
for au, _ in pairs(auevents.aliases) do
if not auevents.nvim_specific[au] then
if lld.line_length > 850 then
w('\n' .. vimau_start)
end
w(' ' .. au)
for _, au in pairs(auevents.aliases) do
if lld.line_length > 850 then
w('\n' .. vimau_start)
end
-- au[1] is aliased to au[2]
w(' ' .. au[1])
end
local nvimau_start = 'syn keyword nvimAutoEvent contained '