diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-17 18:37:11 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-07-17 18:37:11 +0200 |
commit | 913e036fa383733c3652a52f50f06c78b5bad695 (patch) | |
tree | 94f251d4198d0be613a8f705f80af00b03e06ad6 /src/gui/curses | |
parent | c10cfb6aa0e57a33aece3ce81ba8a40d1fd03024 (diff) | |
download | weechat-913e036fa383733c3652a52f50f06c78b5bad695.zip |
core: fix pointer used to check if buffer has lines
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 21ec67da6..920e18324 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -1498,7 +1498,7 @@ gui_window_scroll_beyond_end (struct t_gui_window *window) if (!gui_init_ok) return; - if (window->buffer->lines) + if (window->buffer->lines->last_line) { window->scroll->start_line = window->buffer->lines->last_line; window->scroll->start_line_pos = -1; |