* files.c (do_writeout) - Only mention file modification if we're writing the same

file we originally opened.



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4424 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta
2009-11-14 20:06:24 +00:00
parent f9d4fd3755
commit 533b9fa827
2 changed files with 3 additions and 1 deletions

View File

@@ -2118,7 +2118,7 @@ bool do_writeout(bool exiting)
}
}
#ifndef NANO_TINY
if (openfile->current_stat && openfile->current_stat->st_mtime < st.st_mtime) {
if (name_exists && openfile->current_stat && openfile->current_stat->st_mtime < st.st_mtime) {
i = do_yesno_prompt(FALSE,
_("File was modified since you opened it, continue saving ? "));
if (i == 0 || i == -1)