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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user