commit 20eb4228299472798070e82dd61a9b1af3339d07
parent 90c6b572d00b695067a9d1ee40d9e8d12f1e1ead
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 7 Apr 2021 12:12:06 +0200
tweaks: avoid converting a file name for more than will fit on screen
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
@@ -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)"));