commit f7d320d932de6633d6d8e38dd2f0ea0a286e1535
parent 0208ae7149e8c4576ac81834a4653c54a6e8bdf5
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Thu, 12 Jan 2017 17:48:33 +0100
tweaks: rename a function, to show it refers to screen rows
Diffstat:
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/browser.c b/src/browser.c
@@ -528,7 +528,7 @@ void browser_refresh(void)
the_column = col;
}
- blank_line(edit, line, col, longest);
+ blank_row(edit, line, col, longest);
/* If the name is too long, we display something like "...ename". */
if (dots)
diff --git a/src/proto.h b/src/proto.h
@@ -727,7 +727,7 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *count);
int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts);
#endif
const sc *get_shortcut(int *kbinput);
-void blank_line(WINDOW *win, int y, int x, int n);
+void blank_row(WINDOW *win, int y, int x, int n);
void blank_titlebar(void);
void blank_edit(void);
void blank_statusbar(void);
diff --git a/src/winio.c b/src/winio.c
@@ -1726,7 +1726,7 @@ const sc *get_shortcut(int *kbinput)
/* Move to (x, y) in win, and display a line of n spaces with the
* current attributes. */
-void blank_line(WINDOW *win, int y, int x, int n)
+void blank_row(WINDOW *win, int y, int x, int n)
{
wmove(win, y, x);
@@ -1737,23 +1737,23 @@ void blank_line(WINDOW *win, int y, int x, int n)
/* Blank the first line of the top portion of the window. */
void blank_titlebar(void)
{
- blank_line(topwin, 0, 0, COLS);
+ blank_row(topwin, 0, 0, COLS);
}
/* Blank all the lines of the middle portion of the window, i.e. the
* edit window. */
void blank_edit(void)
{
- int i;
+ int row;
- for (i = 0; i < editwinrows; i++)
- blank_line(edit, i, 0, COLS);
+ for (row = 0; row < editwinrows; row++)
+ blank_row(edit, row, 0, COLS);
}
/* Blank the first line of the bottom portion of the window. */
void blank_statusbar(void)
{
- blank_line(bottomwin, 0, 0, COLS);
+ blank_row(bottomwin, 0, 0, COLS);
}
/* If the NO_HELP flag isn't set, blank the last two lines of the bottom
@@ -1761,8 +1761,8 @@ void blank_statusbar(void)
void blank_bottombars(void)
{
if (!ISSET(NO_HELP) && LINES > 4) {
- blank_line(bottomwin, 1, 0, COLS);
- blank_line(bottomwin, 2, 0, COLS);
+ blank_row(bottomwin, 1, 0, COLS);
+ blank_row(bottomwin, 2, 0, COLS);
}
}
@@ -2682,7 +2682,7 @@ int update_line(filestruct *fileptr, size_t index)
return 1;
/* First, blank out the line. */
- blank_line(edit, line, 0, COLS);
+ blank_row(edit, line, 0, COLS);
/* Next, convert variables that index the line to their equivalent
* positions in the expanded line. */
@@ -2721,7 +2721,7 @@ int update_line(filestruct *fileptr, size_t index)
#ifdef DEBUG
fprintf(stderr, "update_line(): softwrap code, moving to %d index %lu\n", line, (unsigned long)index);
#endif
- blank_line(edit, line, 0, COLS);
+ blank_row(edit, line, 0, COLS);
/* Expand the line, replacing tabs with spaces, and control
* characters with their displayed forms. */
@@ -2961,7 +2961,7 @@ void edit_refresh(void)
}
while (row < editwinrows)
- blank_line(edit, row++, 0, COLS);
+ blank_row(edit, row++, 0, COLS);
reset_cursor();
wnoutrefresh(edit);