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

patch 8.1.0676: textprop screendump test fails

Problem:    Textprop screendump test fails.
Solution:   Add missing changes.
This commit is contained in:
Bram Moolenaar
2019-01-01 20:31:31 +01:00
parent b9c67a51c1
commit 5e53ac00a2
2 changed files with 5 additions and 2 deletions

View File

@@ -4326,13 +4326,14 @@ win_line(
if (text_props != NULL)
{
int pi;
int bcol = (int)(ptr - line);
// Check if any active property ends.
for (pi = 0; pi < text_props_active; ++pi)
{
int tpi = text_prop_idxs[pi];
if (vcol >= text_props[tpi].tp_col - 1
if (bcol >= text_props[tpi].tp_col - 1
+ text_props[tpi].tp_len)
{
if (pi + 1 < text_props_active)
@@ -4347,7 +4348,7 @@ win_line(
// Add any text property that starts in this column.
while (text_prop_next < text_prop_count
&& vcol >= text_props[text_prop_next].tp_col - 1)
&& bcol >= text_props[text_prop_next].tp_col - 1)
text_prop_idxs[text_props_active++] = text_prop_next++;
text_prop_attr = 0;

View File

@@ -799,6 +799,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
676,
/**/
675,
/**/