summaryrefslogtreecommitdiffstats
path: root/src/drawline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-02 19:46:57 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-02 19:46:57 +0000
commitacdc911e4e1120ef29d86fce8e890c72cdd1bf30 (patch)
tree7bf3b5db9e650d3bce9dcfcb5a3c734ea0629d4c /src/drawline.c
parent5e86964bf48ddbfa20261bda84db391c80a36dca (diff)
patch 8.2.3723: when using 'linebreak' a text property starts too earlyv8.2.3723
Problem: When using 'linebreak' a text property starts too early. Solution: Decrement "bcol" when looking for property start. (closes #9242)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 7d6d4fd8aa..3106196e9d 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -1453,6 +1453,11 @@ win_line(
}
}
+# 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)