Commit 3fe5aceb authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3512 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Showing with 9 additions and 3 deletions
+9 -3
...@@ -1837,8 +1837,14 @@ int do_writeout(bool exiting) ...@@ -1837,8 +1837,14 @@ int do_writeout(bool exiting)
#endif #endif
#ifdef NANO_EXTRA #ifdef NANO_EXTRA
if (exiting && !ISSET(TEMP_FILE) && /* If the current file has been modified, we've pressed
strcasecmp(answer, "zzy") == 0 && !did_credits) { * 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(); do_credits();
did_credits = TRUE; did_credits = TRUE;
retval = -1; retval = -1;
...@@ -1885,7 +1891,7 @@ int do_writeout(bool exiting) ...@@ -1885,7 +1891,7 @@ int do_writeout(bool exiting)
break; break;
} }
} /* while (TRUE) */ }
free(ans); free(ans);
......
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