summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wins.c b/src/wins.c
index 2d6a932..2396a87 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -606,10 +606,10 @@ wins_prepare_external (void)
if (notify_bar ())
notify_stop_main_thread ();
def_prog_mode ();
- endwin ();
ui_mode = UI_CMDLINE;
clear ();
wins_refresh ();
+ endwin ();
}
/* Restore windows when returning from an external command. */