mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Don't bother moving the cursor for empty lines.
This commit is contained in:
parent
7461c165b5
commit
175d1854d4
4
tty.c
4
tty.c
@ -720,7 +720,8 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp,
|
||||
tty_putcode(tty, TTYC_EL1);
|
||||
cleared = 1;
|
||||
}
|
||||
tty_cursor(tty, ox, oy + py);
|
||||
if (sx != 0)
|
||||
tty_cursor(tty, ox, oy + py);
|
||||
|
||||
memcpy(&last, &grid_default_cell, sizeof last);
|
||||
len = 0;
|
||||
@ -776,7 +777,6 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp,
|
||||
|
||||
if (!cleared && sx < tty->sx) {
|
||||
tty_default_attributes(tty, wp, 8);
|
||||
|
||||
tty_cursor(tty, ox + sx, oy + py);
|
||||
if (sx != screen_size_x(s) &&
|
||||
ox + screen_size_x(s) >= tty->sx &&
|
||||
|
Loading…
Reference in New Issue
Block a user