mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
tweaks: avoid converting a file name for more than will fit on screen
This commit is contained in:
parent
90c6b572d0
commit
20eb422829
@ -2097,7 +2097,7 @@ void minibar(void)
|
||||
/* Display the name of the current file, plus a star when modified. */
|
||||
if (openfile->filename[0] != '\0') {
|
||||
as_an_at = FALSE;
|
||||
thename = display_string(openfile->filename, 0, HIGHEST_POSITIVE, FALSE, FALSE);
|
||||
thename = display_string(openfile->filename, 0, COLS, FALSE, FALSE);
|
||||
} else
|
||||
thename = copy_of(_("(nameless)"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user