mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.2469: confusing error if :winsize has a wrong argument
Problem: Confusing error if :winsize has a wrong argument. Solution: Quote the argument in the error. (closes #2523)
This commit is contained in:
@@ -327,6 +327,9 @@ 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
|
||||
|
||||
" Test for the :redir command
|
||||
|
Reference in New Issue
Block a user