Problem: Confusing error if :winsize has a wrong argument.
Solution: Quote the argument in the error. (closes #2523)
char_u *arg = eap->arg;
char_u *p;
+ if (!isdigit(*arg))
+ {
+ semsg(_(e_invarg2), arg);
+ return;
+ }
w = getdigits(&arg);
arg = skipwhite(arg);
p = arg;
" 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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2469,
/**/
2468,
/**/