mirror of git://git.sv.gnu.org/nano.git
more miscellaneous minor fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3720 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
85ffaeeefc
commit
6b90657d94
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue