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;
|
openfile->modified = FALSE;
|
||||||
titlebar(NULL);
|
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;
|
retval = TRUE;
|
||||||
|
|
||||||
cleanup_and_exit:
|
cleanup_and_exit:
|
||||||
|
|
Loading…
Reference in New Issue