1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

core: fix infinite loop in display when the chat area is too small (closes #2053)

This commit is contained in:
Sébastien Helleu
2023-12-14 23:12:32 +01:00
parent fa0b320178
commit 1cc59edfcc
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -645,6 +645,8 @@ gui_chat_display_word (struct t_gui_window *window,
nick_offline);
}
ptr_data[pos_saved_char] = saved_char;
if (pos_saved_char == 0)
break;
ptr_data += pos_saved_char;
}
else
@@ -666,6 +668,8 @@ gui_chat_display_word (struct t_gui_window *window,
apply_style_inactive,
nick_offline);
}
if (!ptr_data[0])
break;
ptr_data += strlen (ptr_data);
}