commit 23cb26c58f04406196cade14b035f665b00d7187
parent 3422ec34190a350b7bbf8db1b8dc5a4f09b8ad21
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 25 Jun 2019 11:34:04 +0200
tweaks: improve a handful of comments
Diffstat:
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/prompt.c b/src/prompt.c
@@ -695,7 +695,7 @@ int do_yesno_prompt(bool all, const char *msg)
post_one_key(cancelshortcut->keystr, _("Cancel"), width);
}
- /* Color the statusbar over its full width and display the question. */
+ /* Color the promptbar over its full width and display the question. */
wattron(bottomwin, interface_color_pair[TITLE_BAR]);
mvwprintw(bottomwin, 0, 0, "%*s", COLS, " ");
mvwaddnstr(bottomwin, 0, 0, msg, actual_x(msg, COLS - 1));
diff --git a/src/winio.c b/src/winio.c
@@ -1797,23 +1797,20 @@ void blank_row(WINDOW *window, int row)
wclrtoeol(window);
}
-/* Blank the first line of the top portion of the window. */
+/* Blank the first line of the top portion of the screen. */
void blank_titlebar(void)
{
mvwprintw(topwin, 0, 0, "%*s", COLS, " ");
}
-/* Blank all the lines of the middle portion of the window, i.e. the
- * edit window. */
+/* Blank all lines of the middle portion of the screen (the edit window). */
void blank_edit(void)
{
- int row;
-
- for (row = 0; row < editwinrows; row++)
+ for (int row = 0; row < editwinrows; row++)
blank_row(edit, row);
}
-/* Blank the first line of the bottom portion of the window. */
+/* Blank the first line of the bottom portion of the screen. */
void blank_statusbar(void)
{
blank_row(bottomwin, 0);
@@ -1826,8 +1823,7 @@ void wipe_statusbar(void)
wnoutrefresh(bottomwin);
}
-/* If the NO_HELP flag isn't set, blank the last two lines of the bottom
- * portion of the window. */
+/* Blank out the two help lines (when they are present). */
void blank_bottombars(void)
{
if (!ISSET(NO_HELP) && LINES > 4) {