forked from aniani/vim
patch 9.0.0189: invalid memory access for text prop without highlight
Problem: Invalid memory access for text prop without highlight. Solution: Check for a valid highlight ID.
This commit is contained in:
@@ -1710,7 +1710,8 @@ win_line(
|
||||
|| text_props[tpi].tp_id < 0)
|
||||
&& text_props[tpi].tp_id != -MAXCOL)
|
||||
{
|
||||
used_attr = syn_id2attr(pt->pt_hl_id);
|
||||
if (pt->pt_hl_id > 0)
|
||||
used_attr = syn_id2attr(pt->pt_hl_id);
|
||||
text_prop_type = pt;
|
||||
text_prop_attr =
|
||||
hl_combine_attr(text_prop_attr, used_attr);
|
||||
|
||||
Reference in New Issue
Block a user