diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-03-12 12:38:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-03-12 12:38:42 +0000 |
commit | 31ddae77358b620c9b1776a472711018916ba1cb (patch) | |
tree | ae950009b60bf185c551034c445e9b51fd6813fb /tty.c | |
parent | 1bbb7932636799b99acbd95dbf845872606412ab (diff) | |
download | rtmux-31ddae77358b620c9b1776a472711018916ba1cb.tar.gz rtmux-31ddae77358b620c9b1776a472711018916ba1cb.tar.bz2 rtmux-31ddae77358b620c9b1776a472711018916ba1cb.zip |
Use EL to clear to end of line if possible.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -588,7 +588,8 @@ 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 (screen_size_x(s) >= tty->sx && tty_term_has(tty->term, TTYC_EL)) + if (ox + sx + screen_size_x(s) >= tty->sx && + tty_term_has(tty->term, TTYC_EL)) tty_putcode(tty, TTYC_EL); else { for (i = sx; i < screen_size_x(s); i++) |