Set mode properly before and after redrawing, and don't bother

calculating cursor position if it won't be used.
This commit is contained in:
nicm
2020-04-17 22:16:28 +00:00
parent a877a5d8c9
commit a7a9460d27
2 changed files with 8 additions and 3 deletions

3
tty.c
View File

@ -2151,6 +2151,9 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
u_int thisx, thisy;
int change;
if (tty->flags & TTY_BLOCK)
return;
if (cx > tty->sx - 1)
cx = tty->sx - 1;