Commit 85616c49 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add missing blank line, and rename total_blank() to total_update(), as

the latter is more accurate


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2387 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 6 deletions
+7 -6
...@@ -315,8 +315,8 @@ CVS code - ...@@ -315,8 +315,8 @@ CVS code -
total_refresh() total_refresh()
- Refresh bottomwin using the value of currshortcut, and change - Refresh bottomwin using the value of currshortcut, and change
the code around do_refresh() calls to accommodate this. (DLR) the code around do_refresh() calls to accommodate this. (DLR)
- Split out the code that blanks the screen before refreshing it - Split out the code that updates the screen before refreshing
into the new function total_blank(). it into the new function total_update().
do_help() do_help()
- Refresh the screen when Ctrl-L is pressed in the help browser, - Refresh the screen when Ctrl-L is pressed in the help browser,
as Pico does. (DLR) as Pico does. (DLR)
......
...@@ -674,7 +674,7 @@ void edit_redraw(const filestruct *old_current, size_t old_pww); ...@@ -674,7 +674,7 @@ void edit_redraw(const filestruct *old_current, size_t old_pww);
void edit_refresh(void); void edit_refresh(void);
void edit_update(topmidnone location); void edit_update(topmidnone location);
int do_yesno(bool all, const char *msg); int do_yesno(bool all, const char *msg);
void total_blank(void); void total_update(void);
void total_refresh(void); void total_refresh(void);
void display_main_list(void); void display_main_list(void);
void do_cursorpos(bool constant); void do_cursorpos(bool constant);
......
...@@ -3732,7 +3732,7 @@ int do_yesno(bool all, const char *msg) ...@@ -3732,7 +3732,7 @@ int do_yesno(bool all, const char *msg)
return ok; return ok;
} }
void total_blank(void) void total_update(void)
{ {
clearok(topwin, TRUE); clearok(topwin, TRUE);
clearok(edit, TRUE); clearok(edit, TRUE);
...@@ -3748,7 +3748,7 @@ void total_blank(void) ...@@ -3748,7 +3748,7 @@ void total_blank(void)
void total_refresh(void) void total_refresh(void)
{ {
total_blank(); total_update();
titlebar(NULL); titlebar(NULL);
edit_refresh(); edit_refresh();
bottombars(currshortcut); bottombars(currshortcut);
...@@ -3879,6 +3879,7 @@ void do_help(void) ...@@ -3879,6 +3879,7 @@ void do_help(void)
/* Set help_text as the string to display. */ /* Set help_text as the string to display. */
help_init(); help_init();
assert(help_text != NULL); assert(help_text != NULL);
#ifndef DISABLE_MOUSE #ifndef DISABLE_MOUSE
...@@ -3935,7 +3936,7 @@ void do_help(void) ...@@ -3935,7 +3936,7 @@ void do_help(void)
} }
if (kbinput == NANO_REFRESH_KEY) if (kbinput == NANO_REFRESH_KEY)
total_blank(); total_update();
else { else {
if (line == old_line && kbinput != ERR) if (line == old_line && kbinput != ERR)
goto skip_redisplay; goto skip_redisplay;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment