diff options
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index af6e49ce48..e1d53183aa 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -806,9 +806,9 @@ void getout(int exitval) /// @return argument's numeric value otherwise static int get_number_arg(const char *p, int *idx, int def) { - if (vim_isdigit(p[*idx])) { + if (ascii_isdigit(p[*idx])) { def = atoi(&(p[*idx])); - while (vim_isdigit(p[*idx])) { + while (ascii_isdigit(p[*idx])) { *idx = *idx + 1; } } @@ -1096,7 +1096,7 @@ static void command_line_scan(mparm_T *parmp) case 'w': /* "-w{number}" set window height */ /* "-w {scriptout}" write to script */ - if (vim_isdigit(((char_u *)argv[0])[argv_idx])) { + if (ascii_isdigit(((char_u *)argv[0])[argv_idx])) { n = get_number_arg(argv[0], &argv_idx, 10); set_option_value((char_u *)"window", n, NULL, 0); break; @@ -1240,7 +1240,7 @@ scripterror: case 'w': /* "-w {nr}" 'window' value */ /* "-w {scriptout}" append to script file */ - if (vim_isdigit(*((char_u *)argv[0]))) { + if (ascii_isdigit(*((char_u *)argv[0]))) { argv_idx = 0; n = get_number_arg(argv[0], &argv_idx, 10); set_option_value((char_u *)"window", n, NULL, 0); |