mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
files: let ^C cancel the exiting when the file on disk was changed
When the user exits with ^X and gets warned that the file on disk
has changed, then typing ^C at the question whether to continue
saving should not discard the buffer and exit, but should return
the user to the filename prompt.
This fixes https://savannah.gnu.org/bugs/?61883.
Reported-by: Tasos Papastylianou <tpapastylianou@hotmail.com>
Bug existed since version 2.9.0, commit 217cfbf3
.
This commit is contained in:
parent
ebf6228f21
commit
1c074cc8cc
@ -2306,6 +2306,8 @@ int write_it_out(bool exiting, bool withprompt)
|
||||
return 2;
|
||||
else
|
||||
return 0;
|
||||
} else if (choice < 0 && exiting) {
|
||||
continue;
|
||||
} else if (choice != 1) {
|
||||
free(given);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user