Add tiny check around new mtime check code. Fixes certain compile time options.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4345 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2008-10-22 22:11:46 +00:00
parent 95add8dabe
commit 2d189ae46d
1 changed files with 2 additions and 0 deletions

View File

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