mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
scrolling in empty windows crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1511 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
666f4b2463
commit
62dc0e36eb
@ -510,6 +510,9 @@ static int view_scroll(TEXT_BUFFER_VIEW_REC *view, GList **lines, int *subline,
|
||||
{
|
||||
int linecount, realcount, scroll_visible;
|
||||
|
||||
if (*lines == NULL)
|
||||
return 0;
|
||||
|
||||
/* scroll down */
|
||||
scroll_visible = lines == &view->startline;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user