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.)
This commit is contained in:
Benno Schulenberg 2024-06-01 10:52:15 +02:00
parent 5251ce1b20
commit ea07eb6aa3
1 changed files with 1 additions and 2 deletions

View File

@ -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