about summary refs log tree commit diff stats
path: root/src/LYUtils.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-08-21 13:30:00 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1998-08-21 13:30:00 -0400
commit3c7cb4bbcd56c17e1abba05f20d001a2484d9919 (patch)
tree30f608a2a7c6355ee69d6b061ed3fd458010ad75 /src/LYUtils.c
parent0eae931d4f0fd1194dfcd978c3d94079b710923f (diff)
downloadlynx-snapshots-3c7cb4bbcd56c17e1abba05f20d001a2484d9919.tar.gz
snapshot of project "lynx", label v2-8-1dev_22
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r--src/LYUtils.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c
index bcbd3cf7..c4deaac9 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -2097,7 +2097,8 @@ PUBLIC int HTCheckForInterrupt NOARGS
     if (TOUPPER(c) == 'Z' || c == 7 || c == 3)
 	return((int)TRUE);
 #ifdef DISP_PARTIAL
-    else if (display_partial)
+    else if (display_partial && (NumOfLines_partial > 2))
+    /* OK, we got several lines from new document and want to scroll... */
     {
 	switch (keymap[c+1])
 	{
@@ -2132,13 +2133,15 @@ PUBLIC int HTCheckForInterrupt NOARGS
 	case LYK_END:
 	    if (HText_canScrollDown())
 		Newline_partial = HText_getNumOfLines() - display_lines + 1;
-		/* set "current" value */
+		/* calculate for "current" bottom value */
 	    break;
 	case LYK_REFRESH :
 	    break ;
 	default :
 	    return ((int)FALSE) ;
 	}
+	if (Newline_partial < 1)
+	    Newline_partial = 1;
 	NumOfLines_partial = HText_getNumOfLines();
 	HText_pageDisplay(Newline_partial, "");
     }