From 7d4ef09cd310a264d26795c93403f9116087b5c2 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 17 Mar 2012 19:29:47 +0000 Subject: Do not clear to end of line if the line is full, fixes missing last character in rightmost pane. --- usr.bin/tmux/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/tty.c') diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index b01fb818211..eca6afa841c 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.125 2012/03/17 19:18:37 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.126 2012/03/17 19:29:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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