ex_tabnext: Disallow "+NN" arg.

Need to do this explicitly because our implementation of getdigits() is
slightly different.
This commit is contained in:
Justin M. Keyes 2017-03-22 00:22:45 +01:00
parent 33858ccb9b
commit 51bc9f243a

View File

@ -6602,7 +6602,8 @@ static void ex_tabnext(exarg_T *eap)
char_u *p_save = p;
tab_number = getdigits(&p);
if (p == p_save || *p_save == '-' || *p != NUL || tab_number == 0) {
if (p == p_save || *p_save == '-' || *p_save == '+' || *p != NUL
|| tab_number == 0) {
// No numbers as argument.
eap->errmsg = e_invarg;
return;