Blob Blame History Raw
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++;