commit b760388bbfb0d6e01825d68d08de7ad54738ddce
parent bb18524cce2f1109eb2e7b5ad911d2bc1e095f75
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 25 Jul 2022 09:08:02 +0200
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.
Diffstat:
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -990,15 +990,6 @@ void shortcut_init(void)
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);
add_to_funcs(do_unindent, MMAIN,
@@ -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);