feedback: with --mini or --zero, suppress number of lines for new buffer

For consistency of style, the number of lines read should only be shown
when inserting a file into the current buffer, not when reading it into
a new buffer.

This amends the fix for https://savannah.gnu.org/bugs/?61509.
master
Benno Schulenberg 2021-11-20 12:27:31 +01:00
parent 9d3d354bd4
commit 7785c3f7cf
1 changed files with 1 additions and 1 deletions

View File

@ -819,7 +819,7 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable)
"Read %zu lines (Converted from DOS format)",
num_lines), num_lines);
#endif
else if ((!ISSET(MINIBAR) && !ISSET(ZERO)) || we_are_running)
else if ((!ISSET(MINIBAR) && !ISSET(ZERO)) || (we_are_running && undoable))
statusline(REMARK, P_("Read %zu line", "Read %zu lines",
num_lines), num_lines);