From c8857a2c26c8ccc5ae0bf87c586e3e9f97039685 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 25 Mar 2005 06:24:13 +0000
Subject: [PATCH] in cut_to_eol(), fix an inaccurate comment

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2425 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog | 3 +++
 src/cut.c | 8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 728f005f..623e0d2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,9 @@ CVS code -
 	- Fix assert to reference the proper variable, so that nano
 	  builds with DEBUG defined again. (Mike Frysinger, found by
 	  Dmitri Vassilenko)
+- cut.c:
+  cut_to_eol()
+	- Fix inaccurate comment. (DLR)
 - files.c:
   do_browser()
 	- Rename variable lineno to fileline to avoid confusion. (DLR)
diff --git a/src/cut.c b/src/cut.c
index b90e52fd..3e7ecb3a 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -84,10 +84,10 @@ void cut_to_eol(void)
 	move_to_filestruct(&cutbuffer, &cutbottom, current, current_x,
 		current, data_len);
     else if (current->next != NULL) {
-	/* If we're at the end of the line, and the next line isn't the
-	 * magicline, move all the text from the current position up to
-	 * the beginning of the next line, i.e, the newline at the
-	 * end, to the cutbuffer. */
+	/* If we're at the end of the line, and it isn't the magicline,
+	 * move all the text from the current position up to the
+	 * beginning of the next line, i.e, the newline at the end, to
+	 * the cutbuffer. */
 	move_to_filestruct(&cutbuffer, &cutbottom, current, current_x,
 		current->next, 0);
 	placewewant = xplustabs();
-- 
GitLab