mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-15 12:54:14 +03:00
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3512 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
4f4a0b9abb
commit
3fe5acebea
12
src/files.c
12
src/files.c
@ -1837,8 +1837,14 @@ int do_writeout(bool exiting)
|
||||
#endif
|
||||
|
||||
#ifdef NANO_EXTRA
|
||||
if (exiting && !ISSET(TEMP_FILE) &&
|
||||
strcasecmp(answer, "zzy") == 0 && !did_credits) {
|
||||
/* If the current file has been modified, we've pressed
|
||||
* Ctrl-X at the edit window to exit, we've pressed "y" at
|
||||
* the "Save modified buffer" prompt to save, we've entered
|
||||
* "zzy" as the filename to save under (hence "xyzzy"), and
|
||||
* this is the first time we've done this, show an Easter
|
||||
* egg. Display the credits. */
|
||||
if (!did_credits && exiting && !ISSET(TEMP_FILE) &&
|
||||
strcasecmp(answer, "zzy") == 0) {
|
||||
do_credits();
|
||||
did_credits = TRUE;
|
||||
retval = -1;
|
||||
@ -1885,7 +1891,7 @@ int do_writeout(bool exiting)
|
||||
|
||||
break;
|
||||
}
|
||||
} /* while (TRUE) */
|
||||
}
|
||||
|
||||
free(ans);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user