forked from aniani/vim
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:
@@ -7347,6 +7347,11 @@ ex_winsize(exarg_T *eap)
|
||||
char_u *arg = eap->arg;
|
||||
char_u *p;
|
||||
|
||||
if (!isdigit(*arg))
|
||||
{
|
||||
semsg(_(e_invarg2), arg);
|
||||
return;
|
||||
}
|
||||
w = getdigits(&arg);
|
||||
arg = skipwhite(arg);
|
||||
p = arg;
|
||||
|
Reference in New Issue
Block a user