feedback: ensure that the reporting of DOS/Mac format is truthful

This fixes https://savannah.gnu.org/bugs/?60660.

Bug existed since version 5.7, commit 77da54c6.
master
Benno Schulenberg 2021-05-23 18:55:41 +02:00
parent ceaae49b2d
commit b38f0cbaf4
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ void mention_name_and_linecount(void)
return;
}
if (openfile->fmt != NIX_FILE)
if (openfile->fmt > NIX_FILE)
/* TRANSLATORS: First %s is file name, second %s is file format. */
statusline(HUSH, P_("%s -- %zu line (%s)", "%s -- %zu lines (%s)", count),
openfile->filename[0] == '\0' ?