diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-05-11 14:01:10 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-05-11 14:01:10 +0100 |
commit | 99582befc49c4c17e5ab56441ba3bc7d0321eeb2 (patch) | |
tree | 43bd720c404dd73e3d40bb901bdfafe80e85374a /tty.c | |
parent | def8f852e3d704b6b6f06f9d6951dd0f779e5c00 (diff) | |
parent | c0d3f204b0b7557793f89535dd555258b3a4a85f (diff) | |
download | rtmux-99582befc49c4c17e5ab56441ba3bc7d0321eeb2.tar.gz rtmux-99582befc49c4c17e5ab56441ba3bc7d0321eeb2.tar.bz2 rtmux-99582befc49c4c17e5ab56441ba3bc7d0321eeb2.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -846,9 +846,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; |