nano

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

commit fd6308d6d3a74a2fe107c04271cefc3c1024b38b
parent 1dbebbcadcc375c660523c87712833b576507e06
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat,  3 Sep 2016 13:41:02 +0200

tweaks: reshuffle a couple of items

Diffstat:
Msrc/global.c | 26+++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/src/global.c b/src/global.c @@ -767,16 +767,25 @@ void shortcut_init(void) #endif } + add_to_funcs(do_cursorpos_void, MMAIN, + N_("Cur Pos"), IFSCHELP(nano_cursorpos_msg), TOGETHER, VIEW); + +#if (!defined(DISABLE_JUSTIFY) && (!defined(DISABLE_SPELLER) || !defined(DISABLE_COLOR)) || \ + defined(DISABLE_JUSTIFY) && defined(DISABLE_SPELLER) && defined(DISABLE_COLOR)) + /* Conditionally placing this one here or further on, to keep the + * help items nicely paired in most conditions. */ + add_to_funcs(do_gotolinecolumn_void, MMAIN, + gotoline_tag, IFSCHELP(nano_gotoline_msg), BLANKAFTER, VIEW); +#endif + #ifndef NANO_TINY add_to_funcs(case_sens_void, MWHEREIS|MREPLACE, N_("Case Sens"), IFSCHELP(nano_case_msg), TOGETHER, VIEW); #endif - #ifdef HAVE_REGEX_H add_to_funcs(regexp_void, MWHEREIS|MREPLACE, N_("Regexp"), IFSCHELP(nano_regexp_msg), TOGETHER, VIEW); #endif - #ifndef NANO_TINY add_to_funcs(backwards_void, MWHEREIS|MREPLACE, N_("Backwards"), IFSCHELP(nano_reverse_msg), TOGETHER, VIEW); @@ -791,20 +800,7 @@ void shortcut_init(void) #ifndef DISABLE_JUSTIFY add_to_funcs(do_full_justify, MWHEREIS, fulljustify_tag, IFSCHELP(nano_fulljustify_msg), TOGETHER, NOVIEW); -#endif - - add_to_funcs(do_cursorpos_void, MMAIN, - N_("Cur Pos"), IFSCHELP(nano_cursorpos_msg), TOGETHER, VIEW); -#if (!defined(DISABLE_JUSTIFY) && (!defined(DISABLE_SPELLER) || !defined(DISABLE_COLOR)) || \ - defined(DISABLE_JUSTIFY) && defined(DISABLE_SPELLER) && defined(DISABLE_COLOR)) - /* Conditionally placing this one here or further on, to keep the - * help items nicely paired in most conditions. */ - add_to_funcs(do_gotolinecolumn_void, MMAIN, - gotoline_tag, IFSCHELP(nano_gotoline_msg), BLANKAFTER, VIEW); -#endif - -#ifndef DISABLE_JUSTIFY add_to_funcs(do_gotolinecolumn_void, MWHEREIS, gotoline_tag, IFSCHELP(nano_gotoline_msg), BLANKAFTER, VIEW); #endif