aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2015-04-22 19:47:53 -0300
committerFelipe Oliveira Carvalho <felipekde@gmail.com>2015-04-24 20:37:13 -0300
commitcaabcae0b7470731e793c199b905bfa1bb696914 (patch)
tree2015066852ad22ec24353db40d2dc752ccd59ce3 /src/nvim/ex_cmds.c
parent93bf201119f68b0723ee3f240afa48134cc41399 (diff)
downloadrneovim-caabcae0b7470731e793c199b905bfa1bb696914.tar.gz
rneovim-caabcae0b7470731e793c199b905bfa1bb696914.tar.bz2
rneovim-caabcae0b7470731e793c199b905bfa1bb696914.zip
Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 1dc1d9c420..78200e4689 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -1858,7 +1858,7 @@ viminfo_readstring (
char_u *retval;
char_u *s, *d;
- if (virp->vir_line[off] == Ctrl_V && vim_isdigit(virp->vir_line[off + 1])) {
+ if (virp->vir_line[off] == Ctrl_V && ascii_isdigit(virp->vir_line[off + 1])) {
ssize_t len = atol((char *)virp->vir_line + off + 1);
retval = xmalloc(len);
// TODO(philix): change type of vim_fgets() size argument to size_t
@@ -3244,7 +3244,7 @@ void ex_z(exarg_T *eap)
++x;
if (*x != 0) {
- if (!VIM_ISDIGIT(*x)) {
+ if (!ascii_isdigit(*x)) {
EMSG(_("E144: non-numeric argument to :z"));
return;
}
@@ -3591,7 +3591,7 @@ void do_sub(exarg_T *eap)
* check for a trailing count
*/
cmd = skipwhite(cmd);
- if (VIM_ISDIGIT(*cmd)) {
+ if (ascii_isdigit(*cmd)) {
i = getdigits_long(&cmd);
if (i <= 0 && !eap->skip && do_error) {
EMSG(_(e_zerocount));
@@ -5867,7 +5867,7 @@ void ex_sign(exarg_T *eap)
/* first arg could be placed sign id */
arg1 = arg;
- if (VIM_ISDIGIT(*arg))
+ if (ascii_isdigit(*arg))
{
id = getdigits_int(&arg);
if (!ascii_iswhite(*arg) && *arg != NUL)