From c284e1ddb89e828b9c2621946a1e0810890d12f1 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 7 Jul 2006 16:21:45 +0000 Subject: [PATCH] fix inaccurate comments git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3767 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/browser.c | 10 +++++----- src/winio.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/browser.c b/src/browser.c index 9360f7dd..45f7a034 100644 --- a/src/browser.c +++ b/src/browser.c @@ -619,14 +619,14 @@ void browser_refresh(void) 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, 7 - * columns for a filename other than ".."). */ + * this to TRUE if we have fewer than 15 columns (i.e, 1 + * column for padding, plus 7 columns for a filename + * other than ".."). */ char *disp = display_string(filetail, dots ? filetaillen - longest + foomaxlen + 4 : 0, longest, FALSE); /* If we put an ellipsis before the filename, reserve 1 - * column for padding, plus foomaxlen columns for "--", - * "(dir)", or the file size, plus 3 columns for the - * ellipsis. */ + * column for padding, plus 7 columns for "--", "(dir)", + * or the file size, plus 3 columns for the ellipsis. */ /* Start highlighting the currently selected file or * directory. */ diff --git a/src/winio.c b/src/winio.c index 72a1a60c..1000a402 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2051,8 +2051,8 @@ void titlebar(const char *path) if (!newfie) { size_t lenpt = strlenpt(path), start_col; - /* Don't set dots to TRUE if we have fewer than 7 columns for - * a filename. */ + /* 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 >= 7 && lenpt >= space); if (dots) {