From 7468db518730e39b0e810d2f08255b3a4f4d527b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 13 Oct 2025 15:35:16 +0800 Subject: [PATCH] vim-patch:partial:9.1.1847: No cmdline completion for :echoconsole and :echowindow (#36157) Problem: No cmdline completion for :echoconsole, :echowindow and second expression after :echoerr. Solution: Set EXPAND_EXPRESSION for :echoconsole and :echowindow, and check for multiple expressions after :echoerr (zeertzjq). closes: vim/vim#18552 https://github.com/vim/vim/commit/7aaca97fc5154bb2f2483237b49e25786a061379 --- test/old/testdir/test_cmdline.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim index 8950690633..08518af1ed 100644 --- a/test/old/testdir/test_cmdline.vim +++ b/test/old/testdir/test_cmdline.vim @@ -1174,11 +1174,13 @@ endfunc func Test_cmdline_complete_expression() let g:SomeVar = 'blah' - for cmd in ['exe', 'echo', 'echon', 'echomsg'] + for cmd in ['exe', 'echo', 'echon', 'echomsg', 'echoerr', + "\ 'echoconsole', 'echowindow'] + \ ] call feedkeys(":" .. cmd .. " SomeV\\\"\", 'tx') - call assert_match('"' .. cmd .. ' SomeVar', @:) + call assert_match('"' .. cmd .. ' SomeVar', @:, cmd) call feedkeys(":" .. cmd .. " foo SomeV\\\"\", 'tx') - call assert_match('"' .. cmd .. ' foo SomeVar', @:) + call assert_match('"' .. cmd .. ' foo SomeVar', @:, cmd) endfor unlet g:SomeVar endfunc