diff --git a/src/files.c b/src/files.c index 36c09caa..a3f4c8fc 100644 --- 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