mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.h
This commit is contained in:
@@ -257,9 +257,9 @@ int cause_errthrow(char_u *mesg, int severe, int *ignore)
|
||||
/* Skip the extra "Vim " prefix for message "E458". */
|
||||
tmsg = elem->msg;
|
||||
if (STRNCMP(tmsg, "Vim E", 5) == 0
|
||||
&& VIM_ISDIGIT(tmsg[5])
|
||||
&& VIM_ISDIGIT(tmsg[6])
|
||||
&& VIM_ISDIGIT(tmsg[7])
|
||||
&& ascii_isdigit(tmsg[5])
|
||||
&& ascii_isdigit(tmsg[6])
|
||||
&& ascii_isdigit(tmsg[7])
|
||||
&& tmsg[8] == ':'
|
||||
&& tmsg[9] == ' ')
|
||||
(*msg_list)->throw_msg = &tmsg[4];
|
||||
@@ -405,11 +405,11 @@ char_u *get_exception_string(void *value, int type, char_u *cmdname, int *should
|
||||
for (p = mesg;; p++) {
|
||||
if (*p == NUL
|
||||
|| (*p == 'E'
|
||||
&& VIM_ISDIGIT(p[1])
|
||||
&& ascii_isdigit(p[1])
|
||||
&& (p[2] == ':'
|
||||
|| (VIM_ISDIGIT(p[2])
|
||||
|| (ascii_isdigit(p[2])
|
||||
&& (p[3] == ':'
|
||||
|| (VIM_ISDIGIT(p[3])
|
||||
|| (ascii_isdigit(p[3])
|
||||
&& p[4] == ':')))))) {
|
||||
if (*p == NUL || p == mesg)
|
||||
STRCAT(val, mesg); /* 'E123' missing or at beginning */
|
||||
|
Reference in New Issue
Block a user