mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ex_tabnext: Disallow "+NN" arg.
Need to do this explicitly because our implementation of getdigits() is slightly different.
This commit is contained in:
parent
33858ccb9b
commit
51bc9f243a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user