commit f3fab1440f2cea2987330af89393c43706cdecde
parent affca9b523a8ca40fcd39243d0f6c4a32935e20a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 11 Nov 2021 12:35:38 +0100
tweaks: shorten two comments, and fold two statements together
Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git 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();
}