From b760388bbfb0d6e01825d68d08de7ad54738ddce Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 25 Jul 2022 09:08:02 +0200 Subject: [PATCH] help: reshuffle two shortcuts so that more help-line items are paired Since version 6.0, Suspend is no longer bound by default, which meant that it dropped out of the help lines, leaving the items after it in an unpaired arrangement. Move the Suspend item and its intended partner to near the end of the list, to reestablish pairing for several items. --- src/global.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/global.c b/src/global.c index a3c90fe7..d488e2aa 100644 --- a/src/global.c +++ b/src/global.c @@ -989,15 +989,6 @@ void shortcut_init(void) add_to_funcs(do_verbatim_input, MMAIN, N_("Verbatim"), WITHORSANS(verbatim_gist), BLANKAFTER, NOVIEW); -#ifndef NANO_TINY - add_to_funcs(do_suspend, MMAIN, - N_("Suspend"), WITHORSANS(suspend_gist), TOGETHER, VIEW); -#endif -#ifdef ENABLE_HELP - add_to_funcs(full_refresh, MMAIN, - N_("Refresh"), WITHORSANS(refresh_gist), BLANKAFTER, VIEW); -#endif - #ifndef NANO_TINY add_to_funcs(do_indent, MMAIN, N_("Indent"), WITHORSANS(indent_gist), TOGETHER, NOVIEW); @@ -1047,12 +1038,19 @@ void shortcut_init(void) #ifdef NANO_TINY add_to_funcs(do_search_backward, MMAIN, N_("Where Was"), WITHORSANS(wherewas_gist), BLANKAFTER, VIEW); +#else + add_to_funcs(do_suspend, MMAIN, + N_("Suspend"), WITHORSANS(suspend_gist), TOGETHER, VIEW); +#endif +#ifdef ENABLE_HELP + add_to_funcs(full_refresh, MMAIN, + N_("Refresh"), WITHORSANS(refresh_gist), TOGETHER, VIEW); #endif - #if !defined(NANO_TINY) || defined(ENABLE_HELP) add_to_funcs(do_center, MMAIN, N_("Center"), WITHORSANS(center_gist), BLANKAFTER, VIEW); #endif + add_to_funcs(do_savefile, MMAIN, N_("Save"), WITHORSANS(savefile_gist), BLANKAFTER, NOVIEW);