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

close #23424
This commit is contained in:
Eisuke Kawashima authored and GitHub committed 2023-05-02 15:16:52 +08:00
1 parent 22170efb47
commit 86c9d8b53c
1 file changed
+5 -6
+5 -6
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 '