diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-22 19:49:53 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2015-04-24 20:37:13 -0300 |
commit | 2ca8afc74eada76f50ae60dbb0d6f1804d36bed5 (patch) | |
tree | 4f272a27dd1d2529382d7d1cc409c988a87b2dee /src/nvim/eval.c | |
parent | caabcae0b7470731e793c199b905bfa1bb696914 (diff) | |
download | rneovim-2ca8afc74eada76f50ae60dbb0d6f1804d36bed5.tar.gz rneovim-2ca8afc74eada76f50ae60dbb0d6f1804d36bed5.tar.bz2 rneovim-2ca8afc74eada76f50ae60dbb0d6f1804d36bed5.zip |
Replace vim_isxdigit() with to ascii_isxdigit() defined in ascii.h
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 29c412ed68..7d9dc9ab51 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -4551,7 +4551,7 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate) case 'x': case 'u': /* Unicode: "\u0023" */ case 'U': - if (vim_isxdigit(p[1])) { + if (ascii_isxdigit(p[1])) { int n, nr; int c = toupper(*p); @@ -4560,7 +4560,7 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate) else n = 4; nr = 0; - while (--n >= 0 && vim_isxdigit(p[1])) { + while (--n >= 0 && ascii_isxdigit(p[1])) { ++p; nr = (nr << 4) + hex2nr(*p); } |