commit 7468db518730e39b0e810d2f08255b3a4f4d527b
parent 7ac6e91d0636979681d565133ad00a6c4b0aa461
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 13 Oct 2025 15:35:16 +0800
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
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git 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\<Tab>\<C-B>\"\<CR>", 'tx')
- call assert_match('"' .. cmd .. ' SomeVar', @:)
+ call assert_match('"' .. cmd .. ' SomeVar', @:, cmd)
call feedkeys(":" .. cmd .. " foo SomeV\<Tab>\<C-B>\"\<CR>", 'tx')
- call assert_match('"' .. cmd .. ' foo SomeVar', @:)
+ call assert_match('"' .. cmd .. ' foo SomeVar', @:, cmd)
endfor
unlet g:SomeVar
endfunc