summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-06 12:58:18 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-06 12:58:18 +0100
commitf5a5116a96b1877c3f44e7bae288fd6603151eb1 (patch)
tree3adebbf60556a14dd53917d23461aa0f2f98d4f9 /src/ex_docmd.c
parent038e09ee7645731de0296d255aabb17603276443 (diff)
downloadvim-git-f5a5116a96b1877c3f44e7bae288fd6603151eb1.tar.gz
patch 8.2.2469: confusing error if :winsize has a wrong argumentv8.2.2469
Problem: Confusing error if :winsize has a wrong argument. Solution: Quote the argument in the error. (closes #2523)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index da499c9e4..a2e53ad34 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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;