From caabcae0b7470731e793c199b905bfa1bb696914 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Wed, 22 Apr 2015 19:47:53 -0300 Subject: Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h --- src/nvim/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/keymap.c') diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index 2026e08de5..455615d318 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -601,7 +601,7 @@ find_special_key ( */ if (bp >= last_dash) { if (STRNICMP(last_dash + 1, "char-", 5) == 0 - && VIM_ISDIGIT(last_dash[6])) { + && ascii_isdigit(last_dash[6])) { /* or or */ vim_str2nr(last_dash + 6, NULL, NULL, TRUE, TRUE, NULL, &n); key = (int)n; @@ -788,7 +788,7 @@ char_u * replace_termcodes ( src = from; // Check for #n at start only: function key n - if (from_part && src[0] == '#' && VIM_ISDIGIT(src[1])) { // function key + if (from_part && src[0] == '#' && ascii_isdigit(src[1])) { // function key result[dlen++] = K_SPECIAL; result[dlen++] = 'k'; if (src[1] == '0') { -- cgit