summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-06-21 13:05:30 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-06-21 13:05:30 +0200
commit76a39cb0cdad733806021c96564428a3e632cc0c (patch)
tree60a687e46dfd470530b8fa5163de500d00b187fb /src/gui
parent589f57c409c70ec69bdb74c6a913a2818675bf2f (diff)
downloadweechat-76a39cb0cdad733806021c96564428a3e632cc0c.zip
core: fix bug with option weechat.look.hotlist_count_max (value+1 was used)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-bar-item.c2
1 files changed, 1 insertions, 1 deletions
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;