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.
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);