diff options
author | nicm <nicm> | 2017-04-18 15:27:47 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-04-18 15:27:47 +0000 |
commit | aace1ead1e711412e4be0287972a389248583ad6 (patch) | |
tree | da93c15ebf3d8f06c550c41d9919edb9c951ce20 /tty.c | |
parent | 83ff1e9bd3b7edecffa97516b2dd1bb77a821bab (diff) |
Do not check for BCE for a background colour that isn't needed, use
colour 8 instead.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -880,7 +880,7 @@ tty_cmd_clearcharacter(struct tty *tty, const struct tty_ctx *ctx) tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); if (tty_term_has(tty->term, TTYC_ECH) && - !tty_fake_bce(tty, ctx->wp, ctx->bg)) + !tty_fake_bce(tty, ctx->wp, 8)) tty_putcode1(tty, TTYC_ECH, ctx->num); else tty_repeat_space(tty, ctx->num); @@ -989,7 +989,7 @@ tty_cmd_reverseindex(struct tty *tty, const struct tty_ctx *ctx) return; if (!tty_pane_full_width(tty, ctx) || - tty_fake_bce(tty, ctx->wp, ctx->bg) || + tty_fake_bce(tty, ctx->wp, 8) || !tty_term_has(tty->term, TTYC_CSR) || !tty_term_has(tty->term, TTYC_RI)) { tty_redraw_region(tty, ctx); @@ -1014,7 +1014,7 @@ tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx) return; if ((!tty_pane_full_width(tty, ctx) && !tty_use_margin(tty)) || - tty_fake_bce(tty, wp, ctx->bg) || + tty_fake_bce(tty, wp, 8) || !tty_term_has(tty->term, TTYC_CSR)) { tty_redraw_region(tty, ctx); return; @@ -1045,7 +1045,7 @@ tty_cmd_scrollup(struct tty *tty, const struct tty_ctx *ctx) u_int i; if ((!tty_pane_full_width(tty, ctx) && !tty_use_margin(tty)) || - tty_fake_bce(tty, wp, ctx->bg) || + tty_fake_bce(tty, wp, 8) || !tty_term_has(tty->term, TTYC_CSR)) { tty_redraw_region(tty, ctx); return; |