Problem: if there is no StatusLine highlighting and there is StatusLineNC
or StatusLineTermNC highlighting then an invalid highlight id is
passed to combine_stl_hlt(). (Coverity)
Solution: Check id_S to be -1 instead of zero.
if (ga_grow(&highlight_ga, 28) == FAIL)
return FAIL;
hlcnt = highlight_ga.ga_len;
- if (id_S == 0)
+ if (id_S == -1)
{
/* Make sure id_S is always valid to simplify code below. Use the last
* entry. */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 970,
/**/
969,
/**/