From 78a81b29b16eb8cf70100e893fc96ff41da86d75 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 25 Jul 2005 18:59:24 +0000
Subject: [PATCH] cosmetic fixes

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

diff --git a/src/text.c b/src/text.c
index 1781dfb2..f5f128f9 100644
--- a/src/text.c
+++ b/src/text.c
@@ -2095,8 +2095,8 @@ void do_wordlinechar_count(void)
 	if (added_magicline)
 	    remove_magicline();
 
-	lines = openfile->filebot->lineno - openfile->fileage->lineno +
-		1;
+	lines = openfile->filebot->lineno -
+		openfile->fileage->lineno + 1;
 	chars = get_totsize(openfile->fileage, openfile->filebot);
 
 	/* Unpartition the filestruct so that it contains all the text
diff --git a/src/winio.c b/src/winio.c
index 6e93749c..7f2ef51c 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -3053,7 +3053,6 @@ size_t get_page_start(size_t column)
 	return column - (COLS - 2);
     else
 	return column - (COLS - 1);
-		/* The parentheses are necessary to avoid overflow. */
 }
 
 /* Resets current_y, based on the position of current, and puts the
-- 
GitLab