diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-01 13:29:29 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-01-01 13:29:29 +0100 |
commit | 77afab57edee0b0b39d7ebc9968b9d93fce0231e (patch) | |
tree | 113cffacd7a56c1b7d4a7d56cbed8e1aad46844e /src | |
parent | 632e2c1eae093dab4a8d801d5568306801e7ee35 (diff) | |
download | weechat-77afab57edee0b0b39d7ebc9968b9d93fce0231e.zip |
core: fix scroll to bottom of window (default key: alt+end) when line displayed is bigger than chat area
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 887f23135..c287f2e56 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -1463,13 +1463,10 @@ gui_window_scroll_bottom (struct t_gui_window *window) switch (window->buffer->type) { case GUI_BUFFER_TYPE_FORMATTED: - if (window->scroll->start_line) - { - window->scroll->start_line = NULL; - window->scroll->start_line_pos = 0; - window->scroll->reset_allowed = 1; - gui_buffer_ask_chat_refresh (window->buffer, 2); - } + window->scroll->start_line = NULL; + window->scroll->start_line_pos = 0; + window->scroll->reset_allowed = 1; + gui_buffer_ask_chat_refresh (window->buffer, 2); break; case GUI_BUFFER_TYPE_FREE: window->scroll->start_line = NULL; |