mirror of
https://github.com/tmux/tmux.git
synced 2024-11-04 18:08:48 +00:00
If redrawing line 0 of the screen onto the tty, there can't be a wrap flag on
the previous line, so move the cursor. Fixes status line redraw issues when resizing in choose mode and hopefully at other times as well.
This commit is contained in:
parent
06ce9da32a
commit
9ffe549ab1
2
tty.c
2
tty.c
@ -484,7 +484,7 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy)
|
|||||||
gl = NULL;
|
gl = NULL;
|
||||||
if (py != 0)
|
if (py != 0)
|
||||||
gl = &s->grid->linedata[s->grid->hsize + py - 1];
|
gl = &s->grid->linedata[s->grid->hsize + py - 1];
|
||||||
if (oy + py == 0 || (gl != NULL && !(gl->flags & GRID_LINE_WRAPPED)) ||
|
if (oy + py == 0 || gl == NULL || !(gl->flags & GRID_LINE_WRAPPED) ||
|
||||||
tty->cx < tty->sx || ox != 0 ||
|
tty->cx < tty->sx || ox != 0 ||
|
||||||
(oy + py != tty->cy + 1 && tty->cy != s->rlower + oy))
|
(oy + py != tty->cy + 1 && tty->cy != s->rlower + oy))
|
||||||
tty_cursor(tty, ox, oy + py);
|
tty_cursor(tty, ox, oy + py);
|
||||||
|
Loading…
Reference in New Issue
Block a user