mirror of
https://github.com/tmux/tmux.git
synced 2024-11-04 18:08:48 +00:00
Use EL to clear to end of line if possible.
This commit is contained in:
parent
1bbb793263
commit
31ddae7735
3
tty.c
3
tty.c
@ -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_reset(tty);
|
||||||
|
|
||||||
tty_cursor(tty, ox + sx, oy + py);
|
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);
|
tty_putcode(tty, TTYC_EL);
|
||||||
else {
|
else {
|
||||||
for (i = sx; i < screen_size_x(s); i++)
|
for (i = sx; i < screen_size_x(s); i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user