commit | f5a5116a96b1877c3f44e7bae288fd6603151eb1 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 06 12:58:18 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 06 12:58:18 2021 +0100 |
tree | 3adebbf60556a14dd53917d23461aa0f2f98d4f9 | |
parent | 038e09ee7645731de0296d255aabb17603276443 [diff] [blame] |
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)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index da499c9..a2e53ad 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -7347,6 +7347,11 @@ char_u *arg = eap->arg; char_u *p; + if (!isdigit(*arg)) + { + semsg(_(e_invarg2), arg); + return; + } w = getdigits(&arg); arg = skipwhite(arg); p = arg;