From 2f8a4257564d0b96d7511574ea250363eb3b28a8 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 5 Jul 2011 15:42:40 +0200 Subject: Move endwin() down in wins_prepare_external() Invoke endwin() *after* calling any other curses functions, such as refresh(). Calling refresh() after endwin() might restore curses mode which is a bad thing for a terminal mode initialization routine. Signed-off-by: Lukas Fleischer --- src/wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wins.c') 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. */ -- cgit v1.2.3-54-g00ecf