From 7de678798ae4e1589e10647b4a168d40765108cf Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 26 May 2005 18:20:05 +0000
Subject: [PATCH] cosmetic fixes

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

diff --git a/src/files.c b/src/files.c
index 4bb84217..b3139011 100644
--- a/src/files.c
+++ b/src/files.c
@@ -2213,9 +2213,9 @@ char *input_tab(char *buf, size_t *place, bool *lastwastab, bool *list)
 		*lastwastab == FALSE))
 	    beep();
 
-	/* If there is more match to display on the statusbar, show it.
-	 * We reset lastwastab to FALSE: it requires hitting Tab twice
-	 * in succession with no statusbar changes to see a match
+	/* If there is more of a match to display on the statusbar, show
+	 * it.  We reset lastwastab to FALSE: it requires hitting Tab
+	 * twice in succession with no statusbar changes to see a match
 	 * list. */
 	if (common_len != *place) {
 	    size_t buflen = strlen(buf);
@@ -2239,10 +2239,12 @@ char *input_tab(char *buf, size_t *place, bool *lastwastab, bool *list)
 
 	    for (match = 0; match < num_matches; match++) {
 		common_len = strnlenpt(matches[match], COLS - 1);
+
 		if (common_len > COLS - 1) {
 		    longest_name = COLS - 1;
 		    break;
 		}
+
 		if (common_len > longest_name)
 		    longest_name = common_len;
 	    }
-- 
GitLab