replace almost all mvwaddstr(hblank) calls with mvwhline(' ', COLS)

calls, which do the same thing


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2840 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey 2005-07-09 04:49:09 +00:00
parent 56001845cd
commit a0ebc813f1
3 changed files with 14 additions and 9 deletions

View File

@ -22,6 +22,11 @@ CVS code -
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

View File

@ -2581,7 +2581,7 @@ char *do_browser(char *path, DIR *dir)
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);

View File

@ -2212,32 +2212,32 @@ size_t strlenpt(const char *buf)
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);
}
}
@ -3435,7 +3435,7 @@ void update_line(const filestruct *fileptr, size_t index)
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. */
@ -3619,7 +3619,7 @@ void edit_refresh(void)
foo = foo->next;
}
while (nlines < editwinrows) {
mvwaddstr(edit, nlines, 0, hblank);
mvwhline(edit, nlines, 0, ' ', COLS);
nlines++;
}
reset_cursor();