display: redraw title bar and edit window only when needed
When we are in the file browser, browser_refresh() will take care of redrawing the title bar and the file list, so total_refresh() should leave those two subwindows alone in that case. This fixes https://savannah.gnu.org/bugs/?51147.master
parent
6ad3d3d6c0
commit
59b0f81bfa
|
@ -3140,17 +3140,19 @@ void total_redraw(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
/* Unconditionally redraw the entire screen, and then refresh it using
|
||||
* the current file. */
|
||||
/* Redraw the entire screen, then refresh the title bar and the content of
|
||||
* the edit window (when not in the file browser), and the bottom bars. */
|
||||
void total_refresh(void)
|
||||
{
|
||||
total_redraw();
|
||||
titlebar(title);
|
||||
if (currmenu != MBROWSER && currmenu != MWHEREISFILE && currmenu != MGOTODIR)
|
||||
titlebar(title);
|
||||
#ifdef ENABLE_HELP
|
||||
if (inhelp)
|
||||
wrap_the_help_text(TRUE);
|
||||
else
|
||||
#endif
|
||||
if (currmenu != MBROWSER && currmenu != MWHEREISFILE && currmenu != MGOTODIR)
|
||||
edit_refresh();
|
||||
bottombars(currmenu);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue