nano

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

commit 6b90657d9400cc16e695f8d10aeda9da98398c4a
parent 85ffaeeefc1a4111fc44cbb709bc52c5005f9e94
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sun,  2 Jul 2006 18:45:45 +0000

more miscellaneous minor fixes


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

Diffstat:
MChangeLog | 2+-
Msrc/browser.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -26,7 +26,7 @@ CVS code - truncated, and where file sizes could be too long. (DLR) - For the ".." entry, display "(parent dir)" instead of "(dir)", as Pico does. (DLR) - - If a filename is too long, truncate and display an ellipsis + - If a filename is too long, truncate it and display an ellipsis before it, as titlebar() does. (DLR) browser_select_filename() - New function, used to select a specific filename in the list. diff --git a/src/browser.c b/src/browser.c @@ -569,7 +569,7 @@ void browser_refresh(void) struct stat st; const char *filetail = tail(filelist[i]); size_t filetaillen = strlenpt(filetail), foo_col; - bool dots = (filetaillen > longest); + bool dots = (filetaillen > longest - 8); /* Do we put an ellipsis before the filename? */ char *disp = display_string(filetail, dots ? filetaillen - longest + 11 : 0, longest, FALSE);