1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2021-12-02 19:46:57 +00:00
parent 5e86964bf4
commit acdc911e4e
4 changed files with 35 additions and 0 deletions

View File

@@ -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)