0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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)
This commit is contained in:
Bram Moolenaar
2021-02-10 17:20:28 +01:00
parent b17ec4d427
commit f3fa18468c
5 changed files with 44 additions and 1 deletions

View File

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