From b00f7e3c6f9b1f066335535e835b5296a380ad6a Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 16 Jul 2005 03:23:56 +0000
Subject: [PATCH] comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2872 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/winio.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/winio.c b/src/winio.c
index 73eaa9b7..ff37fc11 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -3505,9 +3505,11 @@ int need_vertical_update(size_t old_pww)
  * scrolling.  direction is the direction to scroll, either UP or DOWN,
  * and nlines is the number of lines to scroll.
  *
- * Note that we don't draw the topmost or bottommost lines before or
- * after scrolling, since we can make no assumptions about which of the
- * two is the current line at either time. */
+ * We assume that the topmost and bottommost lines of the scrolled
+ * region are where the current line was before and will be after
+ * scrolling, and hence don't draw them, since we can't know which is
+ * which.  edit_redraw() should be used to draw these lines, and to
+ * redraw marked lines, if applicable. */
 void edit_scroll(updown direction, int nlines)
 {
     const filestruct *foo;
-- 
GitLab