commit 7785c3f7cf9523981614eeaf128cc8618348916c
parent 9d3d354bd492a6f3e01bacfcf688d3bfb743ef9a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 20 Nov 2021 12:27:31 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);