diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-10 17:20:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-10 17:20:28 +0100 |
commit | f3fa18468c0adc4fa645f7c394d7a6d14d3d4352 (patch) | |
tree | afa56d87d87648bce9687cd69b9f9313b9e631a3 /src/drawline.c | |
parent | b17ec4d427f9009eff5dbc3184b26d68b0163edb (diff) |
patch 8.2.2493: text property for text left of window shows upv8.2.2493
Problem: Text property for text left of window shows up.
Solution: Check if the text property ends before the current column.
(closes #7806)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 4dde0d0740..077e7fcde3 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -1418,7 +1418,12 @@ win_line( // 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; |