neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 86c9d8b53cd9c2713eb2f7fa07732ca9a65a4afb
parent 22170efb474aae0856aec2525b41b65a6a9e49eb
Author: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Date:   Tue,  2 May 2023 16:16:52 +0900

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

close #23424
Diffstat:
Msrc/nvim/generators/gen_vimvim.lua | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/nvim/generators/gen_vimvim.lua b/src/nvim/generators/gen_vimvim.lua @@ -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 '