diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-17 19:29:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-03-17 19:29:47 +0000 |
commit | 7d4ef09cd310a264d26795c93403f9116087b5c2 (patch) | |
tree | 2947c6c5f35cd2505f3617fbb62b4dd25b85baad /usr.bin/tmux/tty.c | |
parent | 29880405b637ed2514ec25363a26366b138fb0f0 (diff) |
Do not clear to end of line if the line is full, fixes missing last
character in rightmost pane.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <nicm@users.sourceforge.net> @@ -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 { |