diff src/message.c @ 870:591fb953a280

updated for version 7.0g05
author vimboss
date Sat, 06 May 2006 21:38:18 +0000
parents 8cd729851562
children 48775ea99f24
line wrap: on
line diff
--- a/src/message.c
+++ b/src/message.c
@@ -2595,8 +2595,11 @@ do_more_prompt(typed_char)
 		    {
 			/* redisplay all lines */
 			screenclear();
-			for (i = 0; i < Rows - 1; ++i)
+			for (i = 0; mp != NULL && i < Rows - 1; ++i)
+			{
 			    mp = disp_sb_line(i, mp);
+			    ++msg_scrolled;
+			}
 		    }
 		    scroll = 0;
 		}