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.
master
Benno Schulenberg 2018-05-31 16:03:05 +02:00
parent a4e353799b
commit f2f901c895
1 changed files with 3 additions and 3 deletions

View File

@ -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: