From ec15fdb30b780b0f31b0a7232615ee9bdcb6dc8f Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 6 Jul 2006 20:36:01 +0000
Subject: [PATCH] comment fixes

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

diff --git a/src/move.c b/src/move.c
index 3af92a33..76b22275 100644
--- a/src/move.c
+++ b/src/move.c
@@ -494,9 +494,10 @@ void do_up(void)
 		ISSET(SMOOTH_SCROLL) ? 1 :
 #endif
 		editwinrows / 2);
-    /* Update the line we were on before and the line we're on now.  The
-     * former needs to be redrawn if we're not on the first page, and
-     * the latter needs to be drawn unconditionally. */
+    /* If we're not on the first line of the edit window, update the
+     * line we were on before and the line we're on now.  The former
+     * needs to be redrawn if we're not on the first page, and the
+     * latter needs to be drawn unconditionally. */
     else {
 	if (need_vertical_update(0))
 	    update_line(openfile->current->next, 0);
@@ -547,9 +548,10 @@ void do_down(void)
 		ISSET(SMOOTH_SCROLL) ? 1 :
 #endif
 		editwinrows / 2);
-    /* Update the line we were on before and the line we're on now.  The
-     * former needs to be redrawn if we're not on the first page, and
-     * the latter needs to be drawn unconditionally. */
+    /* If we're not on the last line of the edit window, update the line
+     * we were on before and the line we're on now.  The former needs to
+     * be redrawn if we're not on the first page, and the latter needs
+     * to be drawn unconditionally. */
     else {
 	if (need_vertical_update(0))
 	    update_line(openfile->current->prev, 0);
-- 
GitLab