summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-06-21 11:02:57 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-06-21 11:02:57 +0200
commitd4b572c753991e03c63afed98157304f282c576a (patch)
treefeabca551c1acb9d7bfa38aae41b68c7acde371e /src/gui
parent271d6a131fef1bbf166669cb12ead2f8948826b2 (diff)
downloadweechat-d4b572c753991e03c63afed98157304f282c576a.zip
Fix scroll Y in bars (bug #26008)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-curses-bar-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c
index cfc769911..c4c8f2167 100644
--- a/src/gui/curses/gui-curses-bar-window.c
+++ b/src/gui/curses/gui-curses-bar-window.c
@@ -495,7 +495,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
y = 0;
some_data_not_displayed = 0;
if ((bar_window->scroll_y > 0)
- && (bar_window->scroll_y >= items_count))
+ && (bar_window->scroll_y > items_count - bar_window->height))
{
bar_window->scroll_y = items_count - bar_window->height;
if (bar_window->scroll_y < 0)