0
0
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:
Bram Moolenaar
2022-08-10 16:49:02 +01:00
parent 952c9b02f8
commit 3331dd0351
9 changed files with 15 additions and 8 deletions

View File

@@ -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);