summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-window.c
diff options
context:
space:
mode:
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);