nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 46104dcc8e6469146d558e2a7a3125b26ab0c5a1
parent 26b3ead8d2b599a1997a655ceb15dc9d09b48f5c
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 15 Dec 2006 02:54:08 +0000

still more miscellaneous minor fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4001 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/files.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -1897,9 +1897,9 @@ int do_writeout(bool exiting) unsunder(answer, answer_len); full_filename = get_full_path(openfile->filename); - different_name = (full_answer != NULL && - full_filename != NULL && strcmp(full_answer, - full_filename) != 0); + different_name = (strcmp((full_answer != NULL) ? + full_answer : answer, (full_filename != NULL) ? + full_filename : openfile->filename) != 0); if (full_filename != NULL) free(full_filename);