From a7a9460d2790161f7bb60c4047acf32d3aa93ed9 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 17 Apr 2020 22:16:28 +0000 Subject: Set mode properly before and after redrawing, and don't bother calculating cursor position if it won't be used. --- tty.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 9c03c08a..82436959 100644 --- a/tty.c +++ b/tty.c @@ -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; -- cgit