Problem: Crash when using an invalid command.
Solution: Fix generating the error message. (Dominique Pelle)
int *addr_type_arg;
{
int i, a, b;
+
for (i = 0; addr_type_complete[i].expand != -1; ++i)
{
a = (int)STRLEN(addr_type_complete[i].name) == vallen;
if (addr_type_complete[i].expand == -1)
{
char_u *err = value;
- for (i=0; err[i] == NUL || !vim_iswhite(err[i]); i++);
+
+ for (i = 0; err[i] != NUL && !vim_iswhite(err[i]); i++)
+ ;
err[i] = NUL;
EMSG2(_("E180: Invalid address type value: %s"), err);
return FAIL;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1075,
/**/
1074,
/**/