Merge pull request #4625 from brcolow/vim-7.4.1075

vim-patch: 7.4.1075
This commit is contained in:
Justin M. Keyes
2016-04-27 21:54:48 -04:00
2 changed files with 6 additions and 5 deletions

View File

@@ -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;