mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
vim-patch:8.2.2469: confusing error if :winsize has a wrong argument (#13889)
Problem: Confusing error if :winsize has a wrong argument.
Solution: Quote the argument in the error. (closes vim/vim#2523)
f5a5116a96
Cherry-pick Test_winsize_cmd() from patch v8.2.0243.
This commit is contained in:
@@ -131,3 +131,11 @@ func Test_confirm_cmd_cancel()
|
||||
\ term_getline(buf, 20))}, 1000)
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
" Test for the :winsize command
|
||||
func Test_winsize_cmd()
|
||||
call assert_fails('winsize 1', 'E465:')
|
||||
call assert_fails('winsize 1 x', 'E465:')
|
||||
call assert_fails('win_getid(1)', 'E475: Invalid argument: _getid(1)')
|
||||
" Actually changing the window size would be flaky.
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user