diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-06-22 20:09:52 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-06-22 20:09:52 +0200 |
commit | 422958337bebfd89a4635cea549bc55f488ab113 (patch) | |
tree | 277a7c24ffda8c3aa6f05e3e2790cf7194d8c0d1 /src/gui/gui-buffer.c | |
parent | 07cbc3bd2e7240f9da1cf9f496823c82a2187aed (diff) | |
download | weechat-422958337bebfd89a4635cea549bc55f488ab113.zip |
core: fix bar item "scroll" after /buffer clear (closes #448)
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 33a86d6e0..3ff61f171 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -2461,25 +2461,12 @@ gui_buffer_is_scrolled (struct t_gui_buffer *buffer) void gui_buffer_clear (struct t_gui_buffer *buffer) { - struct t_gui_window *ptr_win; - if (!buffer) return; /* remove all lines */ gui_line_free_all (buffer); - /* remove any scroll for buffer */ - for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) - { - if (ptr_win->buffer == buffer) - { - ptr_win->scroll->first_line_displayed = 1; - ptr_win->scroll->start_line = NULL; - ptr_win->scroll->start_line_pos = 0; - } - } - gui_hotlist_remove_buffer (buffer, 0); gui_buffer_ask_chat_refresh (buffer, 2); |