diff --git a/ChangeLog b/ChangeLog index bb938dbe0..5e54276e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ v0.4.0-dev, 2012-12-19 Version 0.4.0 (under dev!) -------------------------- +* core: fix refresh of windows after split (fix bug with horizontal separator + between windows) (bug #37874) * core: fix stuck mouse (bug #36533) * core: fix default mouse buttons actions for script buffer (focus the window before executing action) 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);