mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user