Commit 139f9c2f authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

files: warn more conspicuously when the file on disk has changed

This partially adresses https://savannah.gnu.org/bugs/?50998.
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -2284,6 +2284,8 @@ int do_writeout(bool exiting)
openfile->current_stat->st_dev != st.st_dev ||
openfile->current_stat->st_ino != st.st_ino)) {
warn_and_shortly_pause(_("File on disk has changed"));
if (do_yesno_prompt(FALSE, _("File was modified since "
"you opened it; continue saving? ")) < 1)
continue;
......
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