diff --git a/ChangeLog b/ChangeLog index 737c98b4a8de815dcbe60e88b359c97c1d09c27c..97fff99e0ab43325ac64fd5faf04cb2bd071b0f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -315,8 +315,8 @@ CVS code - total_refresh() - Refresh bottomwin using the value of currshortcut, and change the code around do_refresh() calls to accommodate this. (DLR) - - Split out the code that blanks the screen before refreshing it - into the new function total_blank(). + - Split out the code that updates the screen before refreshing + it into the new function total_update(). do_help() - Refresh the screen when Ctrl-L is pressed in the help browser, as Pico does. (DLR) diff --git a/src/proto.h b/src/proto.h index 04eb01a075361b9e9332b099d213347af49a3943..c4339783d67fead8db101807d46d180d8f352edb 100644 --- a/src/proto.h +++ b/src/proto.h @@ -674,7 +674,7 @@ void edit_redraw(const filestruct *old_current, size_t old_pww); void edit_refresh(void); void edit_update(topmidnone location); int do_yesno(bool all, const char *msg); -void total_blank(void); +void total_update(void); void total_refresh(void); void display_main_list(void); void do_cursorpos(bool constant); diff --git a/src/winio.c b/src/winio.c index d781aed2f24ee6b36b3b2b681f7aeeb99698ed33..f1cd5a267cec1832efab648d04b531f3a272bc15 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3732,7 +3732,7 @@ int do_yesno(bool all, const char *msg) return ok; } -void total_blank(void) +void total_update(void) { clearok(topwin, TRUE); clearok(edit, TRUE); @@ -3748,7 +3748,7 @@ void total_blank(void) void total_refresh(void) { - total_blank(); + total_update(); titlebar(NULL); edit_refresh(); bottombars(currshortcut); @@ -3879,6 +3879,7 @@ void do_help(void) /* Set help_text as the string to display. */ help_init(); + assert(help_text != NULL); #ifndef DISABLE_MOUSE @@ -3935,7 +3936,7 @@ void do_help(void) } if (kbinput == NANO_REFRESH_KEY) - total_blank(); + total_update(); else { if (line == old_line && kbinput != ERR) goto skip_redisplay;