summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c
index d38cf7347b..2b482bb2db 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -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);