From 49172cad95963785ca4655ece6597451a15df697 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 13 Jul 2006 02:10:27 +0000
Subject: [PATCH] more typo fixes

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

diff --git a/src/browser.c b/src/browser.c
index c2199ee6..df28f7a9 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -623,7 +623,7 @@ void browser_refresh(void)
 		/* The maximum length of the file information in
 		 * columns: 7 for "--", "(dir)", or the file size, and
 		 * 12 for "(parent dir)". */
-	bool dots = (COLS >= 15 && filetaillen > longest -
+	bool dots = (COLS >= 15 && filetaillen >= longest -
 		foomaxlen - 1);
 		/* Do we put an ellipsis before the filename?  Don't set
 		 * this to TRUE if we have fewer than 15 columns (i.e, 1
diff --git a/src/winio.c b/src/winio.c
index 9acdb854..5e97f8cb 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2055,7 +2055,7 @@ void titlebar(const char *path)
 
 	/* Don't set dots to TRUE if we have fewer than 8 columns (i.e,
 	 * 1 column for padding, plus 7 columns for a filename). */
-	dots = (space >= 8 && lenpt > space);
+	dots = (space >= 8 && lenpt >= space);
 
 	if (dots) {
 	    start_col = lenpt - space + 3;
-- 
GitLab