Commit 2d189ae4 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -2028,12 +2028,14 @@ bool do_writeout(bool exiting)
continue;
}
}
#ifndef NANO_TINY
if (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)
continue;
}
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment