mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 04:46:37 +02:00
core: do nothing in "/window scroll_beyond_end" if the buffer has no lines
This commit is contained in:
@@ -1498,9 +1498,12 @@ gui_window_scroll_beyond_end (struct t_gui_window *window)
|
||||
if (!gui_init_ok)
|
||||
return;
|
||||
|
||||
window->scroll->start_line = window->buffer->lines->last_line;
|
||||
window->scroll->start_line_pos = -1;
|
||||
gui_buffer_ask_chat_refresh (window->buffer, 2);
|
||||
if (window->buffer->lines)
|
||||
{
|
||||
window->scroll->start_line = window->buffer->lines->last_line;
|
||||
window->scroll->start_line_pos = -1;
|
||||
gui_buffer_ask_chat_refresh (window->buffer, 2);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user