Commit 2503503a authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: make the conditions for statusbar blanking more transparent

No related merge requests found
Showing with 15 additions and 10 deletions
+15 -10
...@@ -1697,18 +1697,23 @@ void blank_bottombars(void) ...@@ -1697,18 +1697,23 @@ void blank_bottombars(void)
/* Check if the number of keystrokes needed to blank the statusbar has /* Check if the number of keystrokes needed to blank the statusbar has
* been pressed. If so, blank the statusbar, unless constant cursor * 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) void check_statusblank(void)
{ {
if (statusblank > 0) { if (statusblank == 0)
statusblank--; return;
if (statusblank == 0 && (currmenu != MMAIN || !ISSET(CONST_UPDATE))) { statusblank--;
blank_statusbar();
wnoutrefresh(bottomwin); /* When editing and 'constantshow' is active, skip the blanking. */
reset_cursor(); if (currmenu == MMAIN && ISSET(CONST_UPDATE))
wnoutrefresh(edit); return;
}
if (statusblank == 0) {
blank_statusbar();
wnoutrefresh(bottomwin);
reset_cursor();
wnoutrefresh(edit);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment