mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 09:43:13 +02:00
core: fix pointer used to check if buffer has lines
This commit is contained in:
@@ -1498,7 +1498,7 @@ gui_window_scroll_beyond_end (struct t_gui_window *window)
|
||||
if (!gui_init_ok)
|
||||
return;
|
||||
|
||||
if (window->buffer->lines)
|
||||
if (window->buffer->lines->last_line)
|
||||
{
|
||||
window->scroll->start_line = window->buffer->lines->last_line;
|
||||
window->scroll->start_line_pos = -1;
|
||||
|
||||
Reference in New Issue
Block a user