From 3c2946ed7b773370924e34b07e78015c87a3e325 Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Tue, 13 Mar 2012 21:40:47 -0400 Subject: Fix a crash when switching from altscreen after window resize. This change fixes a crash when window is resized while in altscreen mode. More details in the bug: http://savannah.gnu.org/bugs/?35757 --- src/resize.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resize.c b/src/resize.c index ec4742e..0e491eb 100644 --- a/src/resize.c +++ b/src/resize.c @@ -747,6 +747,8 @@ int wi, he, hi; for (yy = p->w_y + p->w_histheight - 1; yy >= 0 && ncy + shift < he; yy--) { ml = OLDWIN(yy); + if (!ml->image) + break; if (ml->image[p->w_width] == ' ') break; shift++; -- cgit v1.2.1