mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
@@ -5504,7 +5504,8 @@ int parse_addr_type_arg(char_u *value, int vallen, uint32_t *argt,
|
||||
int *addr_type_arg)
|
||||
{
|
||||
int i, a, b;
|
||||
for (i = 0; addr_type_complete[i].expand != -1; ++i) {
|
||||
|
||||
for (i = 0; addr_type_complete[i].expand != -1; i++) {
|
||||
a = (int)STRLEN(addr_type_complete[i].name) == vallen;
|
||||
b = STRNCMP(value, addr_type_complete[i].name, vallen) == 0;
|
||||
if (a && b) {
|
||||
@@ -5515,8 +5516,8 @@ int parse_addr_type_arg(char_u *value, int vallen, uint32_t *argt,
|
||||
|
||||
if (addr_type_complete[i].expand == -1) {
|
||||
char_u *err = value;
|
||||
for (i = 0; err[i] == NUL || !ascii_iswhite(err[i]); i++)
|
||||
;
|
||||
|
||||
for (i = 0; err[i] != NUL && !ascii_iswhite(err[i]); i++) {}
|
||||
err[i] = NUL;
|
||||
EMSG2(_("E180: Invalid address type value: %s"), err);
|
||||
return FAIL;
|
||||
|
@@ -603,8 +603,8 @@ static int included_patches[] = {
|
||||
// 1078 NA
|
||||
// 1077 NA
|
||||
1076,
|
||||
// 1075,
|
||||
// 1074 NA
|
||||
1075,
|
||||
// 1074 NA,
|
||||
// 1073,
|
||||
1072,
|
||||
// 1071,
|
||||
|
Reference in New Issue
Block a user