summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-12-19 12:19:21 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-12-19 12:19:21 +0100
commitdd96e6daef45aa5b763b674524811534e92504ab (patch)
tree93ad260c428678ff446def8dc1cf439fe8665d09 /src/gui/curses/gui-curses-window.c
parent1b0ce4bf8b77fb254e5270ff4bda88f11d97f28a (diff)
downloadweechat-dd96e6daef45aa5b763b674524811534e92504ab.zip
core: fix refresh of windows after split (fix bug with horizontal separator between windows) (bug #37874)
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r--src/gui/curses/gui-curses-window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index 0adfc1f13..7de8cafce 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -1675,8 +1675,7 @@ gui_window_split_horizontal (struct t_gui_window *window, int percentage)
/* assign same buffer for new window (top window) */
gui_buffer_add_value_num_displayed (new_window->buffer, 1);
- window->refresh_needed = 1;
- new_window->refresh_needed = 1;
+ gui_window_ask_refresh (1);
gui_window_switch (new_window);
}
@@ -1725,8 +1724,7 @@ gui_window_split_vertical (struct t_gui_window *window, int percentage)
/* assign same buffer for new window (right window) */
gui_buffer_add_value_num_displayed (new_window->buffer, 1);
- window->refresh_needed = 1;
- new_window->refresh_needed = 1;
+ gui_window_ask_refresh (1);
gui_window_switch (new_window);