From 7785c3f7cf9523981614eeaf128cc8618348916c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 20 Nov 2021 12:27:31 +0100 Subject: [PATCH] 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. --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 47184af7..e344bd0e 100644 --- a/src/files.c +++ b/src/files.c @@ -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);