tweaks: rename a function, to show it refers to screen rows

master
Benno Schulenberg 2017-01-12 17:48:33 +01:00
parent 0208ae7149
commit f7d320d932
3 changed files with 13 additions and 13 deletions

View File

@ -528,7 +528,7 @@ void browser_refresh(void)
the_column = col; 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 the name is too long, we display something like "...ename". */
if (dots) if (dots)

View File

@ -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); int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts);
#endif #endif
const sc *get_shortcut(int *kbinput); 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_titlebar(void);
void blank_edit(void); void blank_edit(void);
void blank_statusbar(void); void blank_statusbar(void);

View File

@ -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 /* Move to (x, y) in win, and display a line of n spaces with the
* current attributes. */ * 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); 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. */ /* Blank the first line of the top portion of the window. */
void blank_titlebar(void) 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 /* Blank all the lines of the middle portion of the window, i.e. the
* edit window. */ * edit window. */
void blank_edit(void) void blank_edit(void)
{ {
int i; int row;
for (i = 0; i < editwinrows; i++) for (row = 0; row < editwinrows; row++)
blank_line(edit, i, 0, COLS); blank_row(edit, row, 0, COLS);
} }
/* Blank the first line of the bottom portion of the window. */ /* Blank the first line of the bottom portion of the window. */
void blank_statusbar(void) 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 /* 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) void blank_bottombars(void)
{ {
if (!ISSET(NO_HELP) && LINES > 4) { if (!ISSET(NO_HELP) && LINES > 4) {
blank_line(bottomwin, 1, 0, COLS); blank_row(bottomwin, 1, 0, COLS);
blank_line(bottomwin, 2, 0, COLS); blank_row(bottomwin, 2, 0, COLS);
} }
} }
@ -2682,7 +2682,7 @@ int update_line(filestruct *fileptr, size_t index)
return 1; return 1;
/* First, blank out the line. */ /* 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 /* Next, convert variables that index the line to their equivalent
* positions in the expanded line. */ * positions in the expanded line. */
@ -2721,7 +2721,7 @@ int update_line(filestruct *fileptr, size_t index)
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "update_line(): softwrap code, moving to %d index %lu\n", line, (unsigned long)index); fprintf(stderr, "update_line(): softwrap code, moving to %d index %lu\n", line, (unsigned long)index);
#endif #endif
blank_line(edit, line, 0, COLS); blank_row(edit, line, 0, COLS);
/* Expand the line, replacing tabs with spaces, and control /* Expand the line, replacing tabs with spaces, and control
* characters with their displayed forms. */ * characters with their displayed forms. */
@ -2961,7 +2961,7 @@ void edit_refresh(void)
} }
while (row < editwinrows) while (row < editwinrows)
blank_line(edit, row++, 0, COLS); blank_row(edit, row++, 0, COLS);
reset_cursor(); reset_cursor();
wnoutrefresh(edit); wnoutrefresh(edit);