From f2f901c895008619e955f47061707faded207c82 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 31 May 2018 16:03:05 +0200 Subject: [PATCH] files: give feedback during writeout also when prepending or appending The only time that feedback about the number of lines written is *not* wanted is when writing a temporary file. This fixes https://savannah.gnu.org/bugs/?54025. --- src/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/files.c b/src/files.c index 00e2e03a..2a5cc518 100644 --- a/src/files.c +++ b/src/files.c @@ -1977,11 +1977,11 @@ bool write_file(const char *name, FILE *f_open, bool tmp, openfile->modified = FALSE; titlebar(NULL); } - - statusline(HUSH, P_("Wrote %zu line", "Wrote %zu lines", - lineswritten), lineswritten); } + if (!tmp) + statusline(HUSH, P_("Wrote %zu line", "Wrote %zu lines", + lineswritten), lineswritten); retval = TRUE; cleanup_and_exit: