nano

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

commit 20aa167c1402ce2b9571bfff5a29d2cc9b6fefd2
parent 0c9905dbd043e2ab8df3e9fbc0b756430f4f49ab
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 26 Nov 2017 20:57:30 +0100

files: always update the stat info when the entire file is written

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

Diffstat:
Msrc/files.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/files.c b/src/files.c @@ -1950,7 +1950,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp, } #ifndef NANO_TINY - if (!openfile->mark) + if (!nonamechange) /* Get or update the stat info to reflect the current state. */ stat_with_alloc(realname, &openfile->current_stat); #endif