commit 59b0f81bfa2dae868e1d057860d88a56db1dfbe2
parent 6ad3d3d6c007ba3e2d471d5530e04a28f1b25846
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 31 May 2017 12:44:02 +0200
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.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -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);
}