diff --git a/src/browser.c b/src/browser.c index c2199ee6bab806a64e767815a88f4a6b3c0a6c69..df28f7a9c26afe963b0fd5d221f826f8d817a7e7 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 9acdb85401b5333abf28d5544efa4015d814d41a..5e97f8cb84050caa002ba897497f96c099bc0c91 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;