diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-21 11:02:57 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-21 11:02:57 +0200 |
commit | d4b572c753991e03c63afed98157304f282c576a (patch) | |
tree | feabca551c1acb9d7bfa38aae41b68c7acde371e /src/gui | |
parent | 271d6a131fef1bbf166669cb12ead2f8948826b2 (diff) | |
download | weechat-d4b572c753991e03c63afed98157304f282c576a.zip |
Fix scroll Y in bars (bug #26008)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/curses/gui-curses-bar-window.c | 2 |
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) |