From 164e85cca75d5f7a6f36c286f597e03d08c90c2a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 17 Mar 2012 19:29:46 +0000 Subject: Do not clear to end of line if the line is full, fixes missing last character in rightmost pane. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 1f83ca74..288d4bd1 100644 --- a/tty.c +++ b/tty.c @@ -604,7 +604,7 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy) tty_reset(tty); tty_cursor(tty, ox + sx, oy + py); - if (ox + screen_size_x(s) >= tty->sx && + if (sx != screen_size_x(s) && ox + screen_size_x(s) >= tty->sx && tty_term_has(tty->term, TTYC_EL)) tty_putcode(tty, TTYC_EL); else { -- cgit v1.2.3