Problem: assertion failure in syn_id2attr()
(@julio-b, after v9.2.0093)
Solution: Set tp_curwin to a valid window in popup_close_tabpage()
and return early in update_winhighlight() if there are
no highlight overrides to update (Foxe Chen).
fixes: #19650
closes: #19670
Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
if (arr == NULL && err != NULL)
return err;
+ if (arr == NULL && wp->w_hl == NULL)
+ return NULL;
+
update_highlight_overrides(wp->w_hl, arr, num);
vim_free(wp->w_hl);
}
back_to_prevwin(wp);
}
+
+ // Set curwin for tabpage to a valid window, in case we try
+ // accessing it later.
+ if (tp->tp_curwin == wp)
+ tp->tp_curwin = tp->tp_firstwin;
+
if (prev == NULL)
*root = wp->w_next;
else
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 169,
/**/
168,
/**/