diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-22 19:47:53 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-24 20:37:13 -0300 |
commit | caabcae0b7470731e793c199b905bfa1bb696914 (patch) | |
tree | 2015066852ad22ec24353db40d2dc752ccd59ce3 /src/nvim/misc1.c | |
parent | 93bf201119f68b0723ee3f240afa48134cc41399 (diff) | |
download | rneovim-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/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 7460f94fbe..db65ad724f 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -524,7 +524,7 @@ open_line ( for (p = lead_flags; *p != NUL && *p != ':'; ) { if (*p == COM_RIGHT || *p == COM_LEFT) c = *p++; - else if (VIM_ISDIGIT(*p) || *p == '-') + else if (ascii_isdigit(*p) || *p == '-') off = getdigits_int(&p); else ++p; @@ -2465,7 +2465,7 @@ get_number ( for (;; ) { ui_cursor_goto(msg_row, msg_col); c = safe_vgetc(); - if (VIM_ISDIGIT(c)) { + if (ascii_isdigit(c)) { n = n * 10 + c - '0'; msg_putchar(c); ++typed; |