in print1opt_full(), if desc should be empty, allow it to be NULL
instead of "", since the latter is not necessarily translated as "" git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2467 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
f1aed80922
commit
c2b07472e2
|
@ -1,4 +1,9 @@
|
||||||
CVS code -
|
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
|
GNU nano 1.3.7 - 2005.04.10
|
||||||
- General:
|
- General:
|
||||||
|
|
|
@ -997,7 +997,9 @@ void print1opt_full(const char *shortflag
|
||||||
printf("\t");
|
printf("\t");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
printf("%s\n", _(desc));
|
if (desc != NULL)
|
||||||
|
printf("%s", _(desc));
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void usage(void)
|
void usage(void)
|
||||||
|
@ -1074,7 +1076,7 @@ void usage(void)
|
||||||
print1opt("-z", "--suspend", N_("Enable suspend"));
|
print1opt("-z", "--suspend", N_("Enable suspend"));
|
||||||
|
|
||||||
/* This is a special case. */
|
/* This is a special case. */
|
||||||
print1opt("-a, -b, -e,", "", "");
|
print1opt("-a, -b, -e,", "", NULL);
|
||||||
print1opt("-f, -g, -j", "", _("(ignored, for Pico compatibility)"));
|
print1opt("-f, -g, -j", "", _("(ignored, for Pico compatibility)"));
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in New Issue