nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 0cae08778420ceed954217c7c37ac222ff67966e
parent 567d47168132ae9c072ec160e066260e33241c1b
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed,  5 Jul 2006 05:43:20 +0000

cosmetic fix


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3750 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/browser.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/browser.c b/src/browser.c @@ -616,7 +616,8 @@ 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 = (filetaillen > longest - foomaxlen - 1); + bool dots = (COLS < 15 ? FALSE : filetaillen > longest - + foomaxlen - 1); /* Do we put an ellipsis before the filename? */ char *disp = display_string(filetail, dots ? filetaillen - longest + foomaxlen + 4 : 0, longest, FALSE);