From d51f74a50763b6ecc976708662686cca3e78db81 Mon Sep 17 00:00:00 2001 From: Bart House Date: Sat, 30 Sep 2017 18:14:33 -0700 Subject: [PATCH] Fix flashing issue that is seen with STATUS_HILITES in Windows port. --- win/tty/wintty.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 205bb6579..2eb84b0cc 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -2520,7 +2520,16 @@ const char *str; nb = str; for (i = cw->curx + 1, n0 = cw->cols; i < n0; i++, nb++) { if (!*nb) { +#ifndef STATUS_HILITES if (*ob || context.botlx) { +#else + /* STATUS_HILITES will call cl_end() when finished + * its sequence of putstr's. We don't want to call + * cl_end() with each putstr() which may cause flashing + * in the Windows port + */ + if (context.botlx) { +#endif /* last char printed may be in middle of line */ tty_curs(WIN_STATUS, i, cw->cury); cl_end(); @@ -3695,6 +3704,7 @@ unsigned long *colormasks; } } } + cl_end(); curs(WIN_STATUS, 1, 1); for (i = 0; fieldorder[1][i] != BL_FLUSH; ++i) { int fldidx2 = fieldorder[1][i]; @@ -3750,6 +3760,7 @@ unsigned long *colormasks; } } } + cl_end(); return; } -- 2.40.0