diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-26 15:21:32 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-26 15:21:32 +0100 |
commit | 8cc03f939d4abc0149e2c3d402e1e1b3e09e8dd1 (patch) | |
tree | c3fd04b4d3a0c2984ec48eaa84c8e225d2d68296 /src/gui/curses/gui-curses-window.c | |
parent | a796188fc828047333be07cf7cf7ba1167752e39 (diff) | |
download | weechat-8cc03f939d4abc0149e2c3d402e1e1b3e09e8dd1.zip |
Fix "/window refresh" (key ctrl+L): force curses refresh (was broken by previous commit for terminal resize)
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 12 |
1 files changed, 8 insertions, 4 deletions
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 (); } } |