mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Need to redraw out to cellsize (total cells used in a line) rather than
cellused (only non-space cells) because there may be cells with a nondefault background.
This commit is contained in:
parent
3a47dec424
commit
5e30b81825
8
tty.c
8
tty.c
@ -778,9 +778,13 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp,
|
|||||||
tty_region_off(tty);
|
tty_region_off(tty);
|
||||||
tty_margin_off(tty);
|
tty_margin_off(tty);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Clamp the width to cellsize - note this is not cellused, because
|
||||||
|
* there may be empty background cells after it (from BCE).
|
||||||
|
*/
|
||||||
sx = screen_size_x(s);
|
sx = screen_size_x(s);
|
||||||
if (sx > s->grid->linedata[s->grid->hsize + py].cellused)
|
if (sx > s->grid->linedata[s->grid->hsize + py].cellsize)
|
||||||
sx = s->grid->linedata[s->grid->hsize + py].cellused;
|
sx = s->grid->linedata[s->grid->hsize + py].cellsize;
|
||||||
if (sx > tty->sx)
|
if (sx > tty->sx)
|
||||||
sx = tty->sx;
|
sx = tty->sx;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user