From dc4f5ea2e2653776fa692a89d93cb44cd3adebff Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 6 Nov 2007 13:17:28 +0100 Subject: Added option "set" for /buffer command --- src/gui/curses/gui-curses-nicklist.c | 4 +++- src/gui/curses/gui-curses-window.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/curses') diff --git a/src/gui/curses/gui-curses-nicklist.c b/src/gui/curses/gui-curses-nicklist.c index 1a748561d..5be8c4984 100644 --- a/src/gui/curses/gui-curses-nicklist.c +++ b/src/gui/curses/gui-curses-nicklist.c @@ -56,7 +56,9 @@ gui_nicklist_draw (struct t_gui_buffer *buffer, int erase) if ((ptr_win->buffer == buffer) && (buffer->num_displayed > 0)) { max_length = gui_nicklist_get_max_length (buffer); - if (max_length != buffer->nick_max_length) + if ((max_length != buffer->nick_max_length) + || (buffer->nicklist && !GUI_CURSES(ptr_win)->win_nick) + || (!buffer->nicklist && GUI_CURSES(ptr_win)->win_nick)) { buffer->nick_max_length = max_length; if (gui_window_calculate_pos_size (ptr_win, 0)) diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 2161496fc..2658a53a3 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -200,7 +200,7 @@ gui_window_calculate_pos_size (struct t_gui_window *window, int force_calculate) return 0; /* init chat & nicklist settings */ - if (cfg_look_nicklist && window->buffer->nicklist) + if (window->buffer->nicklist) { max_length = gui_nicklist_get_max_length (window->buffer); -- cgit v1.2.3