1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

resizing empty windows didn't work properly

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1539 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-06-04 21:58:47 +00:00 committed by cras
parent 3609f6f243
commit bd7cc25590

View File

@ -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.. */