commit ea07eb6aa3320001665faf9913728ddb66a43196
parent 5251ce1b20e7e2b6d886136ef0bce164b8788fc7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 1 Jun 2024 10:52:15 +0200
help: show option -Y/--syntax in --help output also in restricted mode
Since version 3.2, commit 5ca444e5, nano reads the nanorc files also
in restricted mode (when not also --ignorercfiles is given), meaning
that syntaxes are available and that a specific syntax can be selected
on the command line. So, the --help output in restricted mode should
list the relevant option: -Y<name> / --syntax=<name>.
(This should have been part of commit b81995af from six years ago.)
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -574,8 +574,7 @@ void usage(void)
N_("Which other characters are word parts"));
#endif
#ifdef ENABLE_COLOR
- if (!ISSET(RESTRICTED))
- print_opt(_("-Y <name>"), _("--syntax=<name>"),
+ print_opt(_("-Y <name>"), _("--syntax=<name>"),
N_("Syntax definition to use for coloring"));
#endif
#ifndef NANO_TINY