An error occurred while fetching folder content.
files: check for a changed disk file also for 'savefile' and --tempfile
Viorel Bota authored
Before writing a file out, nano should check that the file on disk
hasn't been modified since it was read -- not only for the normal
"Write Out" action (^O), but also for "Save File" (future ^S) and
for "Save and Exit" (^X when --tempfile is used).

When writing fails and --tempfile is in effect, don't go on to prompt
for a file name; instead let the user decide what she wants to do.

This fixes https://savannah.gnu.org/bugs/?51040

.
Signed-off-by: default avatarViorel Bota <botaviorel@gmail.com>
Signed-off-by: default avatarBenno Schulenberg <bensberg@telfort.nl>
217cfbf3
Name Last commit Last update