From f3fab1440f2cea2987330af89393c43706cdecde Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 11 Nov 2021 12:35:38 +0100 Subject: [PATCH] tweaks: shorten two comments, and fold two statements together --- src/winio.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/winio.c b/src/winio.c index f9c25131..879da2e4 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1691,20 +1691,16 @@ void blank_bottombars(void) } } -/* Check if the number of keystrokes needed to blank the status bar has - * been pressed. If so, blank the status bar, unless constant cursor - * position display is on and we are in the editing screen. */ +/* When some number of keystrokes has been reached, wipe the status bar. */ void check_statusblank(void) { if (statusblank == 0) return; - statusblank--; - - if (statusblank == 0) + if (--statusblank == 0) wipe_statusbar(); - /* If the subwindows overlap, make sure to show the edit window now. */ + /* When windows overlap, make sure to show the edit window now. */ if (currmenu == MMAIN && (ISSET(ZERO) || LINES == 1)) edit_refresh(); }