1
1

tweaks: avoid converting a file name for more than will fit on screen

Этот коммит содержится в:
Benno Schulenberg 2021-04-07 12:12:06 +02:00
родитель 90c6b572d0
Коммит 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)"));