tweaks: add some small, clarifying comments
Suggested-by: Tasos Papastylianou <tpapastylianou@hotmail.com>
This commit is contained in:
parent
1c074cc8cc
commit
32e63fe1b8
@ -2299,16 +2299,16 @@ int write_it_out(bool exiting, bool withprompt)
|
|||||||
* overwrite the file right here when requested. */
|
* overwrite the file right here when requested. */
|
||||||
if (ISSET(SAVE_ON_EXIT) && withprompt) {
|
if (ISSET(SAVE_ON_EXIT) && withprompt) {
|
||||||
free(given);
|
free(given);
|
||||||
if (choice == 1)
|
if (choice == 1) /* Yes */
|
||||||
return write_file(openfile->filename, NULL,
|
return write_file(openfile->filename, NULL,
|
||||||
NORMAL, OVERWRITE, NONOTES);
|
NORMAL, OVERWRITE, NONOTES);
|
||||||
else if (choice == 0)
|
else if (choice == 0) /* No -- discard buffer */
|
||||||
return 2;
|
return 2;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
} else if (choice < 0 && exiting) {
|
} else if (choice < 0 && exiting) { /* Cancel of ^X */
|
||||||
continue;
|
continue;
|
||||||
} else if (choice != 1) {
|
} else if (choice < 1) { /* No or Cancel */
|
||||||
free(given);
|
free(given);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user