1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

irc: fix crash on /list buffer when a filter is set (issue #2197)

This commit is contained in:
Sébastien Helleu
2024-10-05 07:48:22 +02:00
parent 39ea49b9c5
commit 57224f4cee
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -506,6 +506,12 @@ irc_list_display_line (struct t_irc_server *server, int line)
ptr_channel = (struct t_irc_list_channel *)weechat_arraylist_get (
server->list->filter_channels, line);
if (!ptr_channel)
{
weechat_printf_y (server->list->buffer, line, "");
return;
}
/* line color */
if (line == server->list->selected_line)
{