1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 19:53:13 +02:00

core: fix bar item "scroll" after /buffer clear (closes #448)

This commit is contained in:
Sébastien Helleu
2015-06-22 20:09:52 +02:00
parent 07cbc3bd2e
commit 422958337b
3 changed files with 12 additions and 14 deletions
+11 -1
View File
@@ -978,7 +978,17 @@ gui_line_remove_from_list (struct t_gui_buffer *buffer,
{
ptr_scroll->start_line = ptr_scroll->start_line->next_line;
ptr_scroll->start_line_pos = 0;
gui_buffer_ask_chat_refresh (buffer, 2);
if (ptr_scroll->start_line)
{
gui_buffer_ask_chat_refresh (buffer, 2);
}
else
{
ptr_scroll->first_line_displayed = 1;
ptr_scroll->scrolling = 0;
ptr_scroll->lines_after = 0;
gui_window_ask_refresh (1);
}
}
}
/* remove line from coords */