diff options
author | Timo Sirainen <cras@irssi.org> | 2001-06-04 21:58:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-06-04 21:58:47 +0000 |
commit | bd7cc25590a8fd29e8fd490106ee7a7dc85d7860 (patch) | |
tree | ed909a979c3d153c3686665cc13a61e78a116059 /src | |
parent | 3609f6f2438f0064968e39739b9f119b0c718605 (diff) | |
download | irssi-bd7cc25590a8fd29e8fd490106ee7a7dc85d7860.zip |
resizing empty windows didn't work properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1539 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/textbuffer-view.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index a8d8a3f8..1af4220a 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -586,9 +586,6 @@ void textbuffer_view_resize(TEXT_BUFFER_VIEW_REC *view, int width, int height) g_return_if_fail(view != NULL); g_return_if_fail(width > 0); - if (view->buffer->lines == NULL) - return; - if (view->width != width) { /* line cache needs to be recreated */ textbuffer_cache_unref(view->cache); @@ -598,6 +595,11 @@ void textbuffer_view_resize(TEXT_BUFFER_VIEW_REC *view, int width, int height) view->width = width; view->height = height; + if (view->buffer->lines == NULL) { + view->empty_linecount = height; + return; + } + textbuffer_view_init_bottom(view); /* check that we didn't scroll lower than bottom startline.. */ |