display: use a somewhat faster method to clear a row

On an 80-column terminal, using a single printw() instead of
a loop of addch() reduces the time taken with 13 percent.
master
Benno Schulenberg 2019-06-23 20:40:22 +02:00
parent c06d5452f5
commit e6c629951f
1 changed files with 1 additions and 4 deletions

View File

@ -1794,10 +1794,7 @@ const keystruct *get_shortcut(int *kbinput)
* current attributes. */
void blank_row(WINDOW *win, int y, int x, int n)
{
wmove(win, y, x);
for (; n > 0; n--)
waddch(win, ' ');
mvwprintw(win, y, x, "%*s", n, " ");
}
/* Blank the first line of the top portion of the window. */