From 0908920b51b03687e9b6f0c4140f35b9fee9693f Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Wed, 8 Oct 2014 18:06:15 -0400 Subject: [PATCH] fix segfault --- src/windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows.c b/src/windows.c index c9f3ecf..399f3db 100644 --- a/src/windows.c +++ b/src/windows.c @@ -370,7 +370,7 @@ void on_window_resize(void) if (w->help->active) wclear(w->help->win); - if (w->is_groupchat) { + if (w->show_peerlist) { delwin(w->chatwin->sidebar); w->chatwin->sidebar = NULL; } else { @@ -390,7 +390,7 @@ void on_window_resize(void) } else { w->chatwin->history = subwin(w->window, y2 - CHATBOX_HEIGHT + 1, x2, 0, 0); - if (w->is_chat) + if (!w->is_groupchat) w->stb->topline = subwin(w->window, 2, x2, 0, 0); }