patch 9.0.0186: virtual text without highlighting does not show
Problem: Virtual text without highlighting does not show. (Ben Jackson)
Solution: Use a text property when it has highlighting or when it has text.
(closes #10878)
diff --git a/src/drawline.c b/src/drawline.c
index 2b47648..d38cf73 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1706,7 +1706,8 @@
proptype_T *pt = text_prop_type_by_id(
wp->w_buffer, text_props[tpi].tp_type);
- if (pt != NULL && pt->pt_hl_id > 0
+ if (pt != NULL && (pt->pt_hl_id > 0
+ || text_props[tpi].tp_id < 0)
&& text_props[tpi].tp_id != -MAXCOL)
{
used_attr = syn_id2attr(pt->pt_hl_id);