=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.387 retrieving revision 1.388 diff -c -r1.387 -r1.388 *** src/usr.bin/tmux/tty.c 2020/12/03 07:12:12 1.387 --- src/usr.bin/tmux/tty.c 2021/01/18 10:27:54 1.388 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.387 2020/12/03 07:12:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.388 2021/01/18 10:27:54 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 1531,1550 **** void tty_cmd_clearcharacter(struct tty *tty, const struct tty_ctx *ctx) { - if (ctx->bigger) { - tty_draw_pane(tty, ctx, ctx->ocy); - return; - } - tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg); ! tty_cursor_pane(tty, ctx, ctx->ocx, ctx->ocy); ! ! if (tty_term_has(tty->term, TTYC_ECH) && ! !tty_fake_bce(tty, &ctx->defaults, 8)) ! tty_putcode1(tty, TTYC_ECH, ctx->num); ! else ! tty_repeat_space(tty, ctx->num); } void --- 1531,1539 ---- void tty_cmd_clearcharacter(struct tty *tty, const struct tty_ctx *ctx) { tty_default_attributes(tty, &ctx->defaults, ctx->palette, ctx->bg); ! tty_clear_pane_line(tty, ctx, ctx->ocy, ctx->ocx, ctx->num, ctx->bg); } void