From 6b90657d9400cc16e695f8d10aeda9da98398c4a Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 2 Jul 2006 18:45:45 +0000
Subject: [PATCH] more miscellaneous minor fixes

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

diff --git a/ChangeLog b/ChangeLog
index 66b7d646..f660b700 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,7 +26,7 @@ CVS code -
 	  truncated, and where file sizes could be too long. (DLR)
 	- For the ".." entry, display "(parent dir)" instead of "(dir)",
 	  as Pico does. (DLR)
-	- If a filename is too long, truncate and display an ellipsis
+	- If a filename is too long, truncate it and display an ellipsis
 	  before it, as titlebar() does. (DLR)
   browser_select_filename()
 	- New function, used to select a specific filename in the list.
diff --git a/src/browser.c b/src/browser.c
index 02b4f097..43d4682c 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -569,7 +569,7 @@ void browser_refresh(void)
 	struct stat st;
 	const char *filetail = tail(filelist[i]);
 	size_t filetaillen = strlenpt(filetail), foo_col;
-	bool dots = (filetaillen > longest);
+	bool dots = (filetaillen > longest - 8);
 		/* Do we put an ellipsis before the filename? */
 	char *disp = display_string(filetail, dots ? filetaillen -
 		longest + 11 : 0, longest, FALSE);
-- 
GitLab