nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f2f901c895008619e955f47061707faded207c82
parent a4e353799b9bb9f74a16dcec3b67b299917134ee
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 31 May 2018 16:03:05 +0200

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.

Diffstat:
Msrc/files.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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); } + } + if (!tmp) statusline(HUSH, P_("Wrote %zu line", "Wrote %zu lines", lineswritten), lineswritten); - } - retval = TRUE; cleanup_and_exit: