patch 8.2.2493: text property for text left of window shows up
Problem: Text property for text left of window shows up.
Solution: Check if the text property ends before the current column.
(closes #7806)
diff --git a/src/drawline.c b/src/drawline.c
index 4dde0d0..077e7fc 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1418,7 +1418,12 @@
// Add any text property that starts in this column.
while (text_prop_next < text_prop_count
&& bcol >= text_props[text_prop_next].tp_col - 1)
- text_prop_idxs[text_props_active++] = text_prop_next++;
+ {
+ if (bcol <= text_props[text_prop_next].tp_col - 1
+ + text_props[text_prop_next].tp_len)
+ text_prop_idxs[text_props_active++] = text_prop_next;
+ ++text_prop_next;
+ }
text_prop_attr = 0;
text_prop_combine = FALSE;