files: suppress feedback when writing an emergency or temporary file

This fixes https://savannah.gnu.org/bugs/?56474.

Bug existed since commit 47770bd3 from two weeks ago.
master
Benno Schulenberg 2019-06-12 09:46:19 +02:00
parent c57d040e99
commit 189de5ee78
1 changed files with 2 additions and 1 deletions

View File

@ -1859,7 +1859,8 @@ bool write_file(const char *name, FILE *f_open, bool tmp,
}
}
statusbar(_("Writing..."));
if (!tmp)
statusbar(_("Writing..."));
while (fileptr != NULL) {
size_t data_len = strlen(fileptr->data), size;