diff --git a/ChangeLog b/ChangeLog
index ee2412477ce89509d2e452fa16841ab574c69c0b..0413b364119000e0977946f5c764575e47634c54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -36,15 +36,15 @@ CVS code -
 	- Consistently make the flags global and any variables used to
 	  hold it longs. (DLR)
 	- Make edit_scroll() sophisticated enough to keep track of
-	  current and current_x and update the lines before and after
-	  the scrolled region, and change the movement functions that
-	  use edit_scroll() to (a) set current and current_x before
-	  calling it, and (b) no longer call edit_redraw() afterward,
-	  since it's now unnecessary.  These changes eliminate
-	  redundant screen updates when the mark is on, since the mark
-	  display depends on current and current_x.  Changes to
-	  edit_scroll(), do_page_up(), do_page_down(), do_up(), and
-	  do_down(). (DLR)
+	  current and current_x, update the lines before and after the
+	  scrolled region, and properly scroll more than editwinrows
+	  lines; and change the movement functions that use
+	  edit_scroll() to (a) set current and current_x before calling
+	  it, and (b) no longer call edit_redraw() afterward, as it's
+	  now unnecessary.  These changes eliminate redundant screen
+	  updates when the mark is on, since the mark display depends on
+	  current and current_x.  Changes to edit_scroll(),
+	  do_page_up(), do_page_down(), do_up(), and do_down(). (DLR)
 	- Consistently make the fg and bg colortype struct entries and
 	  any variables used to hold them shorts.  Changes to
 	  do_colorinit() (renamed color_init()), color_to_int() (renamed
diff --git a/src/winio.c b/src/winio.c
index 9c0b9dc9091b6df4cbfc56e37d14784a45e903d9..fed7582addcf2b3f559f98f942be36f454cedbda 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -3496,9 +3496,8 @@ void edit_scroll(updown direction, int nlines)
     const filestruct *foo;
     int i;
 
-    /* Scrolling less than one line or more than editwinrows lines is
-     * redundant, so don't allow it. */
-    if (nlines < 1 || nlines > editwinrows)
+    /* Don't bother scrolling less than one line. */
+    if (nlines < 1)
 	return;
 
     /* Move the top line of the edit window up or down (depending on the
@@ -3516,26 +3515,27 @@ void edit_scroll(updown direction, int nlines)
 	}
     }
 
-    /* Scroll the text on the screen up or down nlines lines, depending
-     * on the value of direction. */
-    scrollok(edit, TRUE);
-    wscrl(edit, (direction == UP) ? -nlines : nlines);
-    scrollok(edit, FALSE);
-
     /* If we scrolled up, we couldn't scroll up all nlines lines, and
      * we're now at the top of the file, we need to treat the entire
      * screen as the scrolled region, instead of just the top nlines
      * lines. */
     if (direction == UP && i > 0 && openfile->edittop ==
 	openfile->fileage)
-	nlines = editwinrows;
+	nlines = editwinrows - 2;
 
     /* Make nlines account for the lines before and after the scrolled
-     * region, if they're onsccreen. */
+     * region, if they're onscreen, and then put nlines in range of
+     * editwinrows. */
     nlines += 2;
     if (nlines > editwinrows)
 	nlines = editwinrows;
 
+    /* Scroll the text on the screen up or down nlines lines, depending
+     * on the value of direction. */
+    scrollok(edit, TRUE);
+    wscrl(edit, (direction == UP) ? -nlines : nlines);
+    scrollok(edit, FALSE);
+
     /* If we scrolled up, we're on the line before the scrolled
      * region. */
     foo = openfile->edittop;