From 8cc03f939d4abc0149e2c3d402e1e1b3e09e8dd1 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 26 Feb 2009 15:21:32 +0100 Subject: Fix "/window refresh" (key ctrl+L): force curses refresh (was broken by previous commit for terminal resize) --- src/gui/curses/gui-curses-window.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/gui/curses/gui-curses-window.c') diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 6d7dc0080..125e8560f 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -1073,7 +1073,7 @@ gui_window_resize (struct t_gui_window *window, int percentage) 1) < 0) parent->split_pct = old_split_pct; else - gui_window_refresh_needed = 1; + gui_window_ask_refresh (1); } } @@ -1322,15 +1322,19 @@ gui_window_switch_right (struct t_gui_window *window) /* * gui_window_refresh_screen: called when term size is modified - * force == 1 when Ctrl+L is pressed + * full_refresh == 1 when Ctrl+L is pressed */ void -gui_window_refresh_screen () +gui_window_refresh_screen (int full_refresh) { if (gui_ok) { - refresh (); + if (full_refresh) + { + endwin (); + refresh (); + } gui_window_refresh_windows (); } } -- cgit v1.2.3