Commit 6b90657d authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

more miscellaneous minor fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3720 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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.
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment