spell.c: fix "[s" search. #2813

Closes #2791
This commit is contained in:
Nathan Wilson 2015-06-09 15:05:18 -04:00 committed by Justin M. Keyes
parent 6ed6d8d910
commit a743297be2

View File

@ -2173,11 +2173,12 @@ spell_move_to (
if (attrp != NULL)
*attrp = attr;
return len;
} else if (curline)
} else if (curline) {
// Insert mode completion: put cursor after
// the bad word.
assert(len <= INT_MAX);
found_pos.col += (int)len;
}
found_len = len;
}
} else