mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
ex_tabnext: Disallow "+NN" arg.
Need to do this explicitly because our implementation of getdigits() is slightly different.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user