Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h

This commit is contained in:
Felipe Oliveira Carvalho
2015-04-22 19:47:53 -03:00
parent 93bf201119
commit caabcae0b7
37 changed files with 168 additions and 176 deletions

View File

@@ -1273,9 +1273,9 @@ static int cs_kill(exarg_T *eap)
}
/* only single digit positive and negative integers are allowed */
if ((strlen(stok) < 2 && VIM_ISDIGIT((int)(stok[0])))
if ((strlen(stok) < 2 && ascii_isdigit((int)(stok[0])))
|| (strlen(stok) < 3 && stok[0] == '-'
&& VIM_ISDIGIT((int)(stok[1]))))
&& ascii_isdigit((int)(stok[1]))))
i = atoi(stok);
else {
/* It must be part of a name. We will try to find a match