diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-10 16:49:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-10 16:49:02 +0100 |
commit | 3331dd03515655ec6b9c1bd374db6e8c27acb27a (patch) | |
tree | b354682872e786f85e0231b91b5eb0bbed91b913 /src/drawline.c | |
parent | 952c9b02f8a7c2386b66ed643eef0acd35e842ae (diff) |
patch 9.0.0186: virtual text without highlighting does not showv9.0.0186
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)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 2b47648308..d38cf7347b 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -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); |