load_file(), rename cancel_fork() cancel_command(),
rename open_pipe() execute_command(), and remove
execute_command(). (DLR)
+ - Replace almost all mvwaddstr(hblank) calls with mvwhline(' ',
+ COLS) calls, which do the same thing. Changes to
+ do_browser(), blank_titlebar(), blank_topbar(), blank_edit(),
+ blank_statusbar(), blank_bottombars(), update_line(), and
+ edit_refresh(). (DLR)
- files.c:
open_file()
- Assert that filename isn't NULL, and don't do anything special
if (j == selected)
wattron(edit, A_REVERSE);
- mvwaddnstr(edit, editline, col, hblank, longest);
+ mvwhline(edit, editline, col, ' ', longest);
mvwaddstr(edit, editline, col, disp);
free(disp);
void blank_titlebar(void)
{
- mvwaddstr(topwin, 0, 0, hblank);
+ mvwhline(topwin, 0, 0, ' ', COLS);
}
void blank_topbar(void)
{
if (!ISSET(MORE_SPACE))
- mvwaddstr(topwin, 1, 0, hblank);
+ mvwhline(topwin, 1, 0, ' ', COLS);
}
void blank_edit(void)
{
int i;
for (i = 0; i < editwinrows; i++)
- mvwaddstr(edit, i, 0, hblank);
+ mvwhline(edit, i, 0, ' ', COLS);
}
void blank_statusbar(void)
{
- mvwaddstr(bottomwin, 0, 0, hblank);
+ mvwhline(bottomwin, 0, 0, ' ', COLS);
}
void blank_bottombars(void)
{
if (!ISSET(NO_HELP)) {
- mvwaddstr(bottomwin, 1, 0, hblank);
- mvwaddstr(bottomwin, 2, 0, hblank);
+ mvwhline(bottomwin, 1, 0, ' ', COLS);
+ mvwhline(bottomwin, 2, 0, ' ', COLS);
}
}
return;
/* First, blank out the line. */
- mvwaddstr(edit, line, 0, hblank);
+ mvwhline(edit, line, 0, ' ', COLS);
/* Next, convert variables that index the line to their equivalent
* positions in the expanded line. */
foo = foo->next;
}
while (nlines < editwinrows) {
- mvwaddstr(edit, nlines, 0, hblank);
+ mvwhline(edit, nlines, 0, ' ', COLS);
nlines++;
}
reset_cursor();