1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00

core: fix infinite loop in display when chat area has width of 1 with a bar displayed on the right (nicklist by default) (bug #37089)

This commit is contained in:
Sebastien Helleu
2012-08-22 10:14:24 +02:00
parent d26f00b391
commit d81d5c09d1
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -1,12 +1,14 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.9-dev, 2012-08-17
v0.3.9-dev, 2012-08-22
Version 0.3.9 (under dev!)
--------------------------
* core: fix infinite loop in display when chat area has width of 1 with
a bar displayed on the right (nicklist by default) (bug #37089)
* core: fix display of "bar more down" char when text is truncated by size_max
in bars with vertical filling (bug #37054)
* core: fix color of long lines (displayed on more than one line on screen)
+2 -1
View File
@@ -52,7 +52,8 @@
int
gui_chat_get_real_width (struct t_gui_window *window)
{
if (window->win_chat_x + window->win_chat_width < gui_window_get_width ())
if ((window->win_chat_width > 1)
&& (window->win_chat_x + window->win_chat_width < gui_window_get_width ()))
return window->win_chat_width - 1;
else
return window->win_chat_width;