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
master
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(), load_file(), rename cancel_fork() cancel_command(),
rename open_pipe() execute_command(), and remove rename open_pipe() execute_command(), and remove
execute_command(). (DLR) 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: - files.c:
open_file() open_file()
- Assert that filename isn't NULL, and don't do anything special - 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) if (j == selected)
wattron(edit, A_REVERSE); wattron(edit, A_REVERSE);
mvwaddnstr(edit, editline, col, hblank, longest); mvwhline(edit, editline, col, ' ', longest);
mvwaddstr(edit, editline, col, disp); mvwaddstr(edit, editline, col, disp);
free(disp); free(disp);

View File

@ -2212,32 +2212,32 @@ size_t strlenpt(const char *buf)
void blank_titlebar(void) void blank_titlebar(void)
{ {
mvwaddstr(topwin, 0, 0, hblank); mvwhline(topwin, 0, 0, ' ', COLS);
} }
void blank_topbar(void) void blank_topbar(void)
{ {
if (!ISSET(MORE_SPACE)) if (!ISSET(MORE_SPACE))
mvwaddstr(topwin, 1, 0, hblank); mvwhline(topwin, 1, 0, ' ', COLS);
} }
void blank_edit(void) void blank_edit(void)
{ {
int i; int i;
for (i = 0; i < editwinrows; i++) for (i = 0; i < editwinrows; i++)
mvwaddstr(edit, i, 0, hblank); mvwhline(edit, i, 0, ' ', COLS);
} }
void blank_statusbar(void) void blank_statusbar(void)
{ {
mvwaddstr(bottomwin, 0, 0, hblank); mvwhline(bottomwin, 0, 0, ' ', COLS);
} }
void blank_bottombars(void) void blank_bottombars(void)
{ {
if (!ISSET(NO_HELP)) { if (!ISSET(NO_HELP)) {
mvwaddstr(bottomwin, 1, 0, hblank); mvwhline(bottomwin, 1, 0, ' ', COLS);
mvwaddstr(bottomwin, 2, 0, hblank); mvwhline(bottomwin, 2, 0, ' ', COLS);
} }
} }
@ -3435,7 +3435,7 @@ void update_line(const filestruct *fileptr, size_t index)
return; return;
/* First, blank out the line. */ /* 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 /* Next, convert variables that index the line to their equivalent
* positions in the expanded line. */ * positions in the expanded line. */
@ -3619,7 +3619,7 @@ void edit_refresh(void)
foo = foo->next; foo = foo->next;
} }
while (nlines < editwinrows) { while (nlines < editwinrows) {
mvwaddstr(edit, nlines, 0, hblank); mvwhline(edit, nlines, 0, ' ', COLS);
nlines++; nlines++;
} }
reset_cursor(); reset_cursor();