core: do nothing in "/window scroll_beyond_end" if the buffer has no lines
This commit is contained in:
parent
bee56c3b7f
commit
c10cfb6aa0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user