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
parent
a4e353799b
commit
f2f901c895
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue