commit 46464105f276580a8e6b269ddee47621130f9dff
parent 7f3bd265930870c35a7e11fb3302b904e2ad554e
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 3 May 2015 13:25:24 +0000
Displaying an ellipsis only when the filename is longer than
the available space, not when it still fits.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5221 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-03 Benno Schulenberg <bensberg@justemail.net>
+ * src/browser.c (browser_refresh): Display an ellipsis only when the
+ filename is longer than the available space, not when it still fits.
+
2015-04-28 Benno Schulenberg <bensberg@justemail.net>
* src/color.c (color_update): Match the file regex of a syntax against
the absolute, canonical path instead of against the path the user gave.
diff --git a/src/browser.c b/src/browser.c
@@ -573,7 +573,7 @@ void browser_refresh(void)
/* The maximum length of the file information in
* columns: seven for "--", "(dir)", or the file size,
* and 12 for "(parent dir)". */
- bool dots = (COLS >= 15 && filetaillen >= longest - foomaxlen - 1);
+ bool dots = (COLS >= 15 && filetaillen >= longest - foomaxlen);
/* Do we put an ellipsis before the filename? Don't set
* this to TRUE if we have fewer than 15 columns (i.e.
* one column for padding, plus seven columns for a