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/ops.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/ops.c')
-rw-r--r-- | src/nvim/ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index c89ffa212f..17183bd350 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -772,7 +772,7 @@ yankreg_T *get_yank_register(int regname, int mode) } int i = 0; // when not 0-9, a-z, A-Z or '-'/'+'/'*': use register 0 - if (VIM_ISDIGIT(regname)) + if (ascii_isdigit(regname)) i = regname - '0'; else if (ASCII_ISLOWER(regname)) i = CharOrdLow(regname) + 10; @@ -4260,12 +4260,12 @@ int do_addsub(int command, linenr_T Prenum1) col = curwin->w_cursor.col; while (ptr[col] != NUL - && !vim_isdigit(ptr[col]) + && !ascii_isdigit(ptr[col]) && !(doalp && ASCII_ISALPHA(ptr[col]))) ++col; while (col > 0 - && vim_isdigit(ptr[col - 1]) + && ascii_isdigit(ptr[col - 1]) && !(doalp && ASCII_ISALPHA(ptr[col]))) --col; } @@ -4275,7 +4275,7 @@ int do_addsub(int command, linenr_T Prenum1) */ firstdigit = ptr[col]; RLADDSUBFIX(ptr); - if ((!VIM_ISDIGIT(firstdigit) && !(doalp && ASCII_ISALPHA(firstdigit))) + if ((!ascii_isdigit(firstdigit) && !(doalp && ASCII_ISALPHA(firstdigit))) || u_save_cursor() != OK) { beep_flush(); return FAIL; |