diff options
author | Timo Sirainen <cras@irssi.org> | 2001-05-21 23:50:13 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-05-21 23:50:13 +0000 |
commit | 62dc0e36eba4afb94821aef68ebe84019ed55797 (patch) | |
tree | 4ad0c8d9de3684a906f9ab77739b78710f544d0e /src/fe-text | |
parent | 666f4b246307ce08da6316b7d3a06e0990a92138 (diff) | |
download | irssi-62dc0e36eba4afb94821aef68ebe84019ed55797.zip |
scrolling in empty windows crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1511 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/textbuffer-view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index 2199a887..f3a74080 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -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; |