From f38bd5030d68e7890cac9b5496bb40e63f9ebd3c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 28 Jan 2020 11:46:04 +0100 Subject: [PATCH] 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. --- src/nano.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nano.c b/src/nano.c index 9c7e87de..6240885b 100644 --- a/src/nano.c +++ b/src/nano.c @@ -629,9 +629,8 @@ void usage(void) print_opt(_("-f "), _("--rcfile="), 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