diff --git a/ChangeLog b/ChangeLog index ff1c69f09d994df5d68a60b79f9c4ca995c1f862..f8e4d58143c7a52dad3bdd7d22514f7d7b59018e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ CVS code - +- nano.c: + print1opt_full() + - If desc should be empty, allow it to be NULL instead of + "", since the latter is not necessarily translated as "". + (DLR, found by Jordi) GNU nano 1.3.7 - 2005.04.10 - General: diff --git a/src/nano.c b/src/nano.c index 64b52fb436a6200e18cfdf60f9d854c2a6254d8e..893679367052965bf68f0e23191499b596f4e66c 100644 --- a/src/nano.c +++ b/src/nano.c @@ -997,7 +997,9 @@ void print1opt_full(const char *shortflag printf("\t"); #endif - printf("%s\n", _(desc)); + if (desc != NULL) + printf("%s", _(desc)); + printf("\n"); } void usage(void) @@ -1074,7 +1076,7 @@ void usage(void) print1opt("-z", "--suspend", N_("Enable suspend")); /* This is a special case. */ - print1opt("-a, -b, -e,", "", ""); + print1opt("-a, -b, -e,", "", NULL); print1opt("-f, -g, -j", "", _("(ignored, for Pico compatibility)")); exit(0);