From 76a39cb0cdad733806021c96564428a3e632cc0c Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 21 Jun 2011 13:05:30 +0200 Subject: [PATCH] core: fix bug with option weechat.look.hotlist_count_max (value+1 was used) --- ChangeLog | 3 ++- src/gui/gui-bar-item.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b9889b1cc..234e64354 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,13 @@ WeeChat ChangeLog ================= Sébastien Helleu -v0.3.6-dev, 2011-06-16 +v0.3.6-dev, 2011-06-21 Version 0.3.6 (under dev!) -------------------------- +* core: fix bug with option weechat.look.hotlist_count_max (value+1 was used) * core: add local variable "highlight_regex" in buffers * core: add "hdata" (direct access to WeeChat/plugin data) * core: add option weechat.look.eat_newline_glitch (do not add new line at end diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index 814b0c423..6e6264409 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -1154,7 +1154,7 @@ gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item, { private = (ptr_hotlist->count[GUI_HOTLIST_PRIVATE] > 0) ? 1 : 0; priority_min_displayed = ptr_hotlist->priority + 1; - priority_min = ptr_hotlist->priority - CONFIG_INTEGER(config_look_hotlist_count_max); + priority_min = ptr_hotlist->priority - CONFIG_INTEGER(config_look_hotlist_count_max) + 1; if (priority_min < 0) priority_min = 0; for (priority = ptr_hotlist->priority;