nano

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

commit 5bb2b5c08aa3a1865944cd6ee03f86c70282af0b
parent 062b6691bb4b88fc3d0eb54b28bddfde59380e37
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 30 Sep 2018 13:57:33 +0200

help: move the linter to the end, to restore pairing in the help lines

Items that are (vaguely) related should be one above the other.

Diffstat:
Msrc/global.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -765,14 +765,9 @@ void shortcut_init(void) add_to_funcs(do_justify_void, MMAIN, N_("Justify"), WITHORSANS(justify_gist), TOGETHER, NOVIEW); #endif - #ifdef ENABLE_SPELLER add_to_funcs(do_spell, MMAIN, - N_("To Spell"), WITHORSANS(spell_gist), TOGETHER, NOVIEW); -#endif -#ifdef ENABLE_COLOR - add_to_funcs(do_linter, MMAIN, - N_("To Linter"), WITHORSANS(lint_gist), BLANKAFTER, NOVIEW); + N_("To Spell"), WITHORSANS(spell_gist), BLANKAFTER, NOVIEW); #endif } @@ -975,6 +970,11 @@ void shortcut_init(void) add_to_funcs(run_macro, MMAIN, N_("Run Macro"), WITHORSANS(runmacro_gist), BLANKAFTER, VIEW); +#ifdef ENABLE_COLOR + if (!ISSET(RESTRICTED)) + add_to_funcs(do_linter, MMAIN, + N_("To Linter"), WITHORSANS(lint_gist), BLANKAFTER, NOVIEW); +#endif add_to_funcs(do_savefile, MMAIN, N_("Save"), WITHORSANS(savefile_gist), BLANKAFTER, NOVIEW); #endif