nano

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

commit 03c184d7f2ed7a301babd5175709f7977f0ca1b4
parent 4ec19847a3f3baaadc80e6bad69557c8cf7a56e6
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 22 May 2018 18:01:15 +0200

tweaks: condense a comment, and elide an unneeded 'if'

Diffstat:
Msrc/nano.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -742,9 +742,7 @@ void mouse_init(void) } #endif /* ENABLE_MOUSE */ -/* Print one usage string to the screen. This cuts down on duplicate - * strings to translate, and leaves out the parts that shouldn't be - * translatable (i.e. the flag names). */ +/* Print the usage line for the given option to the screen. */ void print_opt(const char *shortflag, const char *longflag, const char *desc) { printf(" %s\t", shortflag); @@ -757,9 +755,7 @@ void print_opt(const char *shortflag, const char *longflag, const char *desc) else if (strlenpt(longflag) < 16) printf("\t"); - if (desc != NULL) - printf("%s", _(desc)); - printf("\n"); + printf("%s\n", _(desc)); } /* Explain how to properly use nano and its command-line options. */