From b0ea4715cae82978eea3c0cd7f71ab9ef8a8623a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 17 Apr 2008 12:30:21 +0200 Subject: Fixed crash when nicklist is top/bottom and that we open a new buffer with a nicklist --- src/gui/gui-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 98e6cb6ae..031d66eb6 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -122,7 +122,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin, char *category, char *name, new_buffer->nicklist = 0; new_buffer->nicklist_case_sensitive = 0; new_buffer->nicklist_root = NULL; - new_buffer->nicklist_max_length = -1; + new_buffer->nicklist_max_length = 0; new_buffer->nicklist_display_groups = 1; new_buffer->nicklist_visible_count = 0; new_buffer->nicklist_refresh_needed = 1; -- cgit v1.2.3