diff src/drawline.c @ 29692:042f357b455d v9.0.0186

patch 9.0.0186: virtual text without highlighting does not show Commit: https://github.com/vim/vim/commit/3331dd03515655ec6b9c1bd374db6e8c27acb27a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 10 16:49:02 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Aug 2022 18:00:04 +0200
parents 1a9b3c96ed08
children b944b7fb563b
line wrap: on
line diff
--- 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);