diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-07 16:28:32 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-12-07 16:28:32 +0100 |
commit | 86489d458763968ef7a833ad00dbc905c1b0e60d (patch) | |
tree | f4e47ffb4d9b2e073fb125709e604aff35084a8c /src/gui/curses | |
parent | 0ba05cc008086309a96d4af80f828daff523f0ec (diff) | |
download | weechat-86489d458763968ef7a833ad00dbc905c1b0e60d.zip |
core: add option "weechat.look.scroll_bottom_after_switch" (if enabled, restore old behaviour before fix of bug #25555 in version 0.3.5)
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index c4cc07bcc..f7fb95678 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -1053,6 +1053,14 @@ gui_window_switch_to_buffer (struct t_gui_window *window, { gui_buffer_last_displayed = window->buffer; gui_window_scroll_switch (window, buffer); + if ((buffer->type == GUI_BUFFER_TYPE_FORMATTED) + && CONFIG_BOOLEAN(config_look_scroll_bottom_after_switch)) + { + window->scroll->start_line = NULL; + window->scroll->start_line_pos = 0; + window->scroll->scrolling = 0; + window->scroll->reset_allowed = 1; + } if (!gui_buffers_visited_frozen) { gui_buffer_visited_add (window->buffer); |