diff options
author | nicm <nicm> | 2017-05-11 11:38:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-05-11 23:28:22 +0100 |
commit | 5e30b818258271882158cf69da6f3efe9379a720 (patch) | |
tree | 27c764312847550b2cdb9f3e166580f521fb515f | |
parent | 3a47dec42462d78d8bbb8a311927614b73449ae6 (diff) | |
download | rtmux-5e30b818258271882158cf69da6f3efe9379a720.tar.gz rtmux-5e30b818258271882158cf69da6f3efe9379a720.tar.bz2 rtmux-5e30b818258271882158cf69da6f3efe9379a720.zip |
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.
-rw-r--r-- | tty.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -778,9 +778,13 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp, tty_region_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); - if (sx > s->grid->linedata[s->grid->hsize + py].cellused) - 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].cellsize; if (sx > tty->sx) sx = tty->sx; |