mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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)
This commit is contained in:
@@ -1706,7 +1706,8 @@ win_line(
|
||||
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);
|
||||
|
Reference in New Issue
Block a user