more comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3725 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-07-02 21:12:58 +00:00
parent 224b6d5b77
commit a43827d1cb
1 changed files with 6 additions and 7 deletions

View File

@ -445,11 +445,10 @@ char *do_browse_from(const char *inpath)
/* Set filelist to the list of files contained in the directory path, /* Set filelist to the list of files contained in the directory path,
* set filelist_len to the number of files in that list, and set longest * set filelist_len to the number of files in that list, and set longest
* to the width in columns of the longest filename in that list, up to * to the width in columns of the longest filename in that list, at
* COLS (but at least 15). We need 8 columns to display a filename * least 15 and at most COLS. We need at least 15 columns to display
* plus "--", "(dir)" or a file size with padding. We need 15 columns * ".. (parent dir)", as Pico does. Assume path exists and is a
* to display ".." plus "(parent dir)" with padding. Assume path exists * directory. */
* and is a directory. */
void browser_init(const char *path, DIR *dir) void browser_init(const char *path, DIR *dir)
{ {
const struct dirent *nextdir; const struct dirent *nextdir;
@ -581,8 +580,8 @@ void browser_refresh(void)
char *disp = display_string(filetail, dots ? filetaillen - char *disp = display_string(filetail, dots ? filetaillen -
longest + 11 : 0, longest, FALSE); longest + 11 : 0, longest, FALSE);
/* If we put an ellipsis before the filename, reserve 8 /* If we put an ellipsis before the filename, reserve 8
* columns for "(dir)" or the file size with padding, * columns for "--", "(dir)", or the file size, plus 3
* plus 3 columns for the ellipsis. */ * columns for the ellipsis. */
/* Highlight the currently selected file or directory. */ /* Highlight the currently selected file or directory. */
if (i == selected) if (i == selected)