=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.25 retrieving revision 1.26 diff -c -r1.25 -r1.26 *** src/usr.bin/tmux/tty.c 2009/08/14 08:53:52 1.25 --- src/usr.bin/tmux/tty.c 2009/08/21 12:29:59 1.26 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.25 2009/08/14 08:53:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.26 2009/08/21 12:29:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 596,602 **** struct window_pane *wp = ctx->wp; struct screen *s = wp->screen; ! if (wp->xoff != 0 || screen_size_x(s) < tty->sx) { tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff); return; } --- 596,604 ---- struct window_pane *wp = ctx->wp; struct screen *s = wp->screen; ! if (wp->xoff != 0 || screen_size_x(s) < tty->sx || ! (!tty_term_has(tty->term, TTYC_DCH) && ! !tty_term_has(tty->term, TTYC_DCH1))) { tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff); return; } *************** *** 604,610 **** tty_reset(tty); tty_cursor(tty, ctx->ocx, ctx->ocy, wp->xoff, wp->yoff); ! tty_emulate_repeat(tty, TTYC_DCH, TTYC_DCH1, ctx->num); } void --- 606,614 ---- tty_reset(tty); tty_cursor(tty, ctx->ocx, ctx->ocy, wp->xoff, wp->yoff); ! if (tty_term_has(tty->term, TTYC_DCH) || ! tty_term_has(tty->term, TTYC_DCH1)) ! tty_emulate_repeat(tty, TTYC_DCH, TTYC_DCH1, ctx->num); } void