mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user