Do not clear to end of line if the line is full, fixes missing last

character in rightmost pane.
pull/1/head
Nicholas Marriott 2012-03-17 19:29:46 +00:00
parent 0b34fefe6e
commit 164e85cca7
1 changed files with 1 additions and 1 deletions

2
tty.c
View File

@ -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 {