aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-03-18 02:02:18 +0000
committerTiago Cunha <tcunha@gmx.com>2012-03-18 02:02:18 +0000
commitbde45cdd9ca49f0e540ba1d43d0ab312a0a7f77f (patch)
tree137d25b3770c5ce2508ad2d995b33105c7a85bc4
parenta7c615a794671e5ca3d5c81707749b4af082fd85 (diff)
downloadrtmux-bde45cdd9ca49f0e540ba1d43d0ab312a0a7f77f.tar.gz
rtmux-bde45cdd9ca49f0e540ba1d43d0ab312a0a7f77f.tar.bz2
rtmux-bde45cdd9ca49f0e540ba1d43d0ab312a0a7f77f.zip
Sync OpenBSD patchset 1061:
Do not clear to end of line if the line is full, fixes missing last character in rightmost pane.
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 7dad2668..cb38c533 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 {