summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-nicklist.c4
-rw-r--r--src/gui/curses/gui-curses-window.c2
2 files changed, 4 insertions, 2 deletions
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);