From 2503503a2acd1e8762016201d815f1a40089d7f3 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@justemail.net> Date: Sun, 15 May 2016 11:36:51 +0200 Subject: [PATCH] tweaks: make the conditions for statusbar blanking more transparent --- src/winio.c | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/winio.c b/src/winio.c index b5fe637c..37222c19 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1697,18 +1697,23 @@ void blank_bottombars(void) /* Check if the number of keystrokes needed to blank the statusbar has * been pressed. If so, blank the statusbar, unless constant cursor - * position display is on. */ + * position display is on and we are in the editing screen. */ void check_statusblank(void) { - if (statusblank > 0) { - statusblank--; - - if (statusblank == 0 && (currmenu != MMAIN || !ISSET(CONST_UPDATE))) { - blank_statusbar(); - wnoutrefresh(bottomwin); - reset_cursor(); - wnoutrefresh(edit); - } + if (statusblank == 0) + return; + + statusblank--; + + /* When editing and 'constantshow' is active, skip the blanking. */ + if (currmenu == MMAIN && ISSET(CONST_UPDATE)) + return; + + if (statusblank == 0) { + blank_statusbar(); + wnoutrefresh(bottomwin); + reset_cursor(); + wnoutrefresh(edit); } } -- GitLab