From 1f49a59b8bde0aeb3a1ef754bcb3724d9af241bb Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 11 Mar 2025 06:49:32 +0800 Subject: fix(events): fix incorrect capitalization of Cmdwin* events (#32813) The name of Cmdwin* events were changed to CmdWin* in 8ed2dbf6e2802516501c11e72e5d6d977e6a07f3 without explanation. This commit changes them back. This doesn't affect the creation or execution of autocommands. It only affects the listing of autocommands. --- test/functional/autocmd/cmdline_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/functional/autocmd/cmdline_spec.lua b/test/functional/autocmd/cmdline_spec.lua index 7e13c0f349..a8f0daded9 100644 --- a/test/functional/autocmd/cmdline_spec.lua +++ b/test/functional/autocmd/cmdline_spec.lua @@ -19,8 +19,8 @@ describe('cmdline autocommands', function() api.nvim_set_var('channel', channel) command("autocmd CmdlineEnter * call rpcnotify(g:channel, 'CmdlineEnter', v:event)") command("autocmd CmdlineLeave * call rpcnotify(g:channel, 'CmdlineLeave', v:event)") - command("autocmd CmdWinEnter * call rpcnotify(g:channel, 'CmdWinEnter', v:event)") - command("autocmd CmdWinLeave * call rpcnotify(g:channel, 'CmdWinLeave', v:event)") + command("autocmd CmdwinEnter * call rpcnotify(g:channel, 'CmdwinEnter', v:event)") + command("autocmd CmdwinLeave * call rpcnotify(g:channel, 'CmdwinLeave', v:event)") end) it('works', function() @@ -163,7 +163,7 @@ describe('cmdline autocommands', function() feed('=') eq({ 'notification', 'CmdlineEnter', { { cmdtype = '=', cmdlevel = 2 } } }, next_msg()) feed('') - eq({ 'notification', 'CmdWinEnter', { {} } }, next_msg()) + eq({ 'notification', 'CmdwinEnter', { {} } }, next_msg()) feed(':') eq({ 'notification', 'CmdlineEnter', { { cmdtype = ':', cmdlevel = 3 } } }, next_msg()) feed('') @@ -172,7 +172,7 @@ describe('cmdline autocommands', function() next_msg() ) feed('') - eq({ 'notification', 'CmdWinLeave', { {} } }, next_msg()) + eq({ 'notification', 'CmdwinLeave', { {} } }, next_msg()) feed('1+2') eq( { 'notification', 'CmdlineLeave', { { cmdtype = '=', cmdlevel = 2, abort = false } } }, -- cgit