diff --git a/ChangeLog b/ChangeLog index eda84d6be80f2506de901f9836fb9dca4e9aad17..0b358e556dd3e7f9dc54f82606338f7b37469199 100644 --- a/ChangeLog +++ b/ChangeLog @@ -316,6 +316,8 @@ CVS code - parse_verbatim_kbinput() - Don't include the ability to enter a Unicode sequence via verbatim input mode if ENABLE_UTF8 isn't defined. (DLR) + check_statusblank() + - Avoid redundant updates when statusblank is 0. (DLR) display_string() - Properly display double-column characters if they're past the first virtual page and their first column is covered by the diff --git a/src/winio.c b/src/winio.c index 372f919c48e8100f7041d0f2c4d44d170887ad39..01edb8192707b4127c1abf060a61854ece7b052f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1737,14 +1737,15 @@ void blank_bottombars(void) * position display is on. */ void check_statusblank(void) { - if (statusblank > 0) + if (statusblank > 0) { statusblank--; - if (statusblank == 0 && !ISSET(CONST_UPDATE)) { - blank_statusbar(); - wnoutrefresh(bottomwin); - reset_cursor(); - wnoutrefresh(edit); + if (statusblank == 0 && !ISSET(CONST_UPDATE)) { + blank_statusbar(); + wnoutrefresh(bottomwin); + reset_cursor(); + wnoutrefresh(edit); + } } }