mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 17:39:09 +00:00
When expanding a line in order to clear it, we need to use the default
background colour - there may be portions that we do not want to clear with the new background colour.
This commit is contained in:
parent
e2a18e2b37
commit
0cd74723e1
2
grid.c
2
grid.c
@ -472,7 +472,7 @@ grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg)
|
|||||||
gd->linedata[yy].cellsize = px;
|
gd->linedata[yy].cellsize = px;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
grid_expand_line(gd, yy, px + nx, bg);
|
grid_expand_line(gd, yy, px + nx, 8); /* default bg first */
|
||||||
for (xx = px; xx < px + nx; xx++)
|
for (xx = px; xx < px + nx; xx++)
|
||||||
grid_clear_cell(gd, xx, yy, bg);
|
grid_clear_cell(gd, xx, yy, bg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user