commit c231b774d759e3eca4ed41f6152017a408d58a3f
parent 0c263bda7dcabe20f58937646155edbdb813337e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 30 Jul 2018 21:03:08 +0200
tweaks: reshuffle some lines, in order to elide one
Diffstat:
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -715,7 +715,14 @@ void shortcut_init(void)
#endif
}
- add_to_funcs(do_search_forward, MMAIN,
+#ifdef ENABLE_HELP
+ /* The description ("x") and blank_after (0) are irrelevant,
+ * because the help viewer does not have a help text. */
+ add_to_funcs(total_refresh, MHELP, N_("Refresh"), "x", 0, VIEW);
+ add_to_funcs(do_exit, MHELP, close_tag, "x", 0, VIEW);
+#endif
+
+ add_to_funcs(do_search_forward, MMAIN|MHELP,
N_("Where Is"), WITHORSANS(whereis_gist), TOGETHER, VIEW);
add_to_funcs(do_replace, MMAIN,
@@ -729,15 +736,6 @@ void shortcut_init(void)
N_("Refresh"), WITHORSANS(browserrefresh_gist), BLANKAFTER, VIEW);
#endif
-#ifdef ENABLE_HELP
- /* The description ("x") and blank_after (0) are irrelevant,
- * because the help viewer does not have a help text. */
- add_to_funcs(total_refresh, MHELP, N_("Refresh"), "x", 0, VIEW);
- add_to_funcs(do_exit, MHELP, close_tag, "x", 0, VIEW);
-
- add_to_funcs(do_search_forward, MHELP, N_("Where Is"), "x", 0, VIEW);
-#endif
-
add_to_funcs(do_cut_text_void, MMAIN,
N_("Cut Text"), WITHORSANS(cut_gist), TOGETHER, NOVIEW);