diff --git a/ChangeLog b/ChangeLog index 6ebe7031..5d486685 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-05-03 Benno Schulenberg + * 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 * 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 index 47bac75b..b366edf9 100644 --- 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