diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-01-21 15:54:59 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-21 15:54:59 +0000 |
commit | 51b2fc2ef5183487dc1acd9f526e904e5bda7814 (patch) | |
tree | 31c0715d2db91c566e6758c542a3fda272deca49 /src/drawline.c | |
parent | 11977f917506d950b7e0cae558bd9189260b253b (diff) |
patch 9.0.1226: spurious empty line when using text propertiesv9.0.1226
Problem: Spurious empty line when using text propertie and virtual text.
Solution: Do not set "text_prop_follows" when the other text property is not
virtual text. (closes #11846)
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 a82a5e49f5..b4208a833c 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -2016,7 +2016,8 @@ win_line( text_prop_type = pt; text_prop_attr = hl_combine_attr(text_prop_attr, used_attr); - other_tpi = used_tpi; + if (used_tpi >= 0 && text_props[used_tpi].tp_id < 0) + other_tpi = used_tpi; text_prop_flags = pt->pt_flags; text_prop_id = tp->tp_id; used_tpi = tpi; |