nano

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

commit f38bd5030d68e7890cac9b5496bb40e63f9ebd3c
parent a2fea9928daeb7e5a07c6c3e4142ff9ab2d973d6
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 28 Jan 2020 11:46:04 +0100

tweaks: add a little change that was overlooked in the previous commit

Option --showcursor applies also to the help viewer, which means that
it can do something useful in restricted mode too.

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

diff --git a/src/nano.c b/src/nano.c @@ -629,9 +629,8 @@ void usage(void) print_opt(_("-f <file>"), _("--rcfile=<file>"), N_("Use only this file for configuring nano")); #endif -#ifdef ENABLE_BROWSER - if (!ISSET(RESTRICTED)) - print_opt("-g", "--showcursor", N_("Show cursor in file browser & help text")); +#if defined(ENABLE_BROWSER) || defined(ENABLE_HELP) + print_opt("-g", "--showcursor", N_("Show cursor in file browser & help text")); #endif print_opt("-h", "--help", N_("Show this help text and exit")); #ifndef NANO_TINY