patch 8.2.3723: when using 'linebreak' a text property starts too early
Problem: When using 'linebreak' a text property starts too early.
Solution: Decrement "bcol" when looking for property start. (closes #9242)
diff --git a/src/drawline.c b/src/drawline.c
index 7d6d4fd..3106196 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1453,6 +1453,11 @@
}
}
+# ifdef FEAT_LINEBREAK
+ if (n_extra > 0 && in_linebreak)
+ // not on the next char yet, don't start another prop
+ --bcol;
+# endif
// 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)