commit a0ebc813f1764ae01720797cfca655d8b516a314
parent 56001845cd3061f4ef0e960942f42034de5de710
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 9 Jul 2005 04:49:09 +0000
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
Diffstat:
3 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -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
diff --git a/src/files.c b/src/files.c
@@ -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);
diff --git a/src/winio.c b/src/winio.c
@@ -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();