mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
fixup: use vim_snprintf, ASCII_ISALNUM
ASCII_ISALNUM is part of vim-patch:8.1.0540
This commit is contained in:
parent
b22ca804dd
commit
842e6fb92f
@ -1949,8 +1949,8 @@ static char_u *illegal_char(char_u *errbuf, size_t errbuflen, int c)
|
||||
if (errbuf == NULL) {
|
||||
return (char_u *)"";
|
||||
}
|
||||
snprintf((char *)errbuf, errbuflen, _("E539: Illegal character <%s>"),
|
||||
(char *)transchar(c));
|
||||
vim_snprintf((char *)errbuf, errbuflen, _("E539: Illegal character <%s>"),
|
||||
(char *)transchar(c));
|
||||
return errbuf;
|
||||
}
|
||||
|
||||
@ -2881,9 +2881,9 @@ ambw_end:
|
||||
|
||||
if (!ascii_isdigit(*(s - 1))) {
|
||||
if (errbuf != NULL) {
|
||||
snprintf((char *)errbuf, errbuflen,
|
||||
_("E526: Missing number after <%s>"),
|
||||
transchar_byte(*(s - 1)));
|
||||
vim_snprintf((char *)errbuf, errbuflen,
|
||||
_("E526: Missing number after <%s>"),
|
||||
transchar_byte(*(s - 1)));
|
||||
errmsg = errbuf;
|
||||
} else
|
||||
errmsg = (char_u *)"";
|
||||
@ -3059,9 +3059,9 @@ ambw_end:
|
||||
}
|
||||
} else {
|
||||
if (errbuf != NULL) {
|
||||
snprintf((char *)errbuf, errbuflen,
|
||||
_("E535: Illegal character after <%c>"),
|
||||
*--s);
|
||||
vim_snprintf((char *)errbuf, errbuflen,
|
||||
_("E535: Illegal character after <%c>"),
|
||||
*--s);
|
||||
errmsg = errbuf;
|
||||
} else
|
||||
errmsg = (char_u *)"";
|
||||
@ -3354,7 +3354,7 @@ ambw_end:
|
||||
* '.encoding'.
|
||||
*/
|
||||
for (p = q; *p != NUL; p++) {
|
||||
if (!ASCII_ISALPHA(*p) && *p != '-') {
|
||||
if (!ASCII_ISALNUM(*p) && *p != '-') {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user