diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-03-14 00:02:37 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-03-14 00:02:37 +0000 |
commit | 81b393a4931037e604975682a2706f4447f06475 (patch) | |
tree | b06e3e3e13155c27643f88c0962113f8d04ad81b /tty.c | |
parent | 786f5e505eedca60e605275c189fc67474d0490c (diff) | |
parent | 5755bfc619d9d638e82b53afc91cf06096f4dfd9 (diff) | |
download | rtmux-81b393a4931037e604975682a2706f4447f06475.tar.gz rtmux-81b393a4931037e604975682a2706f4447f06475.tar.bz2 rtmux-81b393a4931037e604975682a2706f4447f06475.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1281,12 +1281,12 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp, gcp->bg != last.bg || ux + width + gcp->data.width > nx || (sizeof buf) - len < gcp->data.size)) { + tty_attributes(tty, &last, wp); if (last.flags & GRID_FLAG_CLEARED) { log_debug("%s: %zu cleared", __func__, len); tty_clear_line(tty, wp, aty, atx + ux, width, last.bg); } else { - tty_attributes(tty, &last, wp); tty_cursor(tty, atx + ux, aty); tty_putn(tty, buf, len, width); } @@ -1322,11 +1322,11 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp, } } if (len != 0 && ((~last.flags & GRID_FLAG_CLEARED) || last.bg != 8)) { + tty_attributes(tty, &last, wp); if (last.flags & GRID_FLAG_CLEARED) { log_debug("%s: %zu cleared (end)", __func__, len); tty_clear_line(tty, wp, aty, atx + ux, width, last.bg); } else { - tty_attributes(tty, &last, wp); tty_cursor(tty, atx + ux, aty); tty_putn(tty, buf, len, width); } |