mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h
This commit is contained in:
@@ -4730,7 +4730,7 @@ int get_literal(void)
|
||||
break;
|
||||
cc = cc * 8 + nc - '0';
|
||||
} else {
|
||||
if (!VIM_ISDIGIT(nc))
|
||||
if (!ascii_isdigit(nc))
|
||||
break;
|
||||
cc = cc * 10 + nc - '0';
|
||||
}
|
||||
@@ -5545,7 +5545,7 @@ static void redo_literal(int c)
|
||||
|
||||
/* Only digits need special treatment. Translate them into a string of
|
||||
* three digits. */
|
||||
if (VIM_ISDIGIT(c)) {
|
||||
if (ascii_isdigit(c)) {
|
||||
vim_snprintf((char *)buf, sizeof(buf), "%03d", c);
|
||||
AppendToRedobuff(buf);
|
||||
} else
|
||||
|
Reference in New Issue
Block a user