Displaying an ellipsis only when the filename is longer than
the available space, not when it still fits. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5221 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
7f3bd26593
commit
46464105f2
|
@ -1,3 +1,7 @@
|
|||
2015-05-03 Benno Schulenberg <bensberg@justemail.net>
|
||||
* src/browser.c (browser_refresh): Display an ellipsis only when the
|
||||
filename is longer than the available space, not when it still fits.
|
||||
|
||||
2015-04-28 Benno Schulenberg <bensberg@justemail.net>
|
||||
* src/color.c (color_update): Match the file regex of a syntax against
|
||||
the absolute, canonical path instead of against the path the user gave.
|
||||
|
|
|
@ -573,7 +573,7 @@ void browser_refresh(void)
|
|||
/* The maximum length of the file information in
|
||||
* columns: seven for "--", "(dir)", or the file size,
|
||||
* and 12 for "(parent dir)". */
|
||||
bool dots = (COLS >= 15 && filetaillen >= longest - foomaxlen - 1);
|
||||
bool dots = (COLS >= 15 && filetaillen >= longest - foomaxlen);
|
||||
/* Do we put an ellipsis before the filename? Don't set
|
||||
* this to TRUE if we have fewer than 15 columns (i.e.
|
||||
* one column for padding, plus seven columns for a
|
||||
|
|
Loading…
Reference in New Issue