From 4c20135749401e936fbd5515d510fa033dd7724c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@telfort.nl> Date: Tue, 26 Dec 2017 21:36:29 +0100 Subject: [PATCH] help: swap the order of the Complete and Comment functions So that Commenting comes closer to the somewhat related Indenting and Unindenting functions. --- src/global.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/global.c b/src/global.c index 4bb2b0de..ce89eb71 100644 --- a/src/global.c +++ b/src/global.c @@ -970,13 +970,13 @@ void shortcut_init(void) add_to_funcs(do_unindent, MMAIN, N_("Unindent Text"), WITHORSANS(unindent_gist), BLANKAFTER, NOVIEW); #endif -#ifdef ENABLE_WORDCOMPLETION - add_to_funcs(complete_a_word, MMAIN, - N_("Complete"), WITHORSANS(completion_gist), TOGETHER, NOVIEW); -#endif #ifdef ENABLE_COMMENT add_to_funcs(do_comment, MMAIN, - N_("Comment Lines"), WITHORSANS(comment_gist), BLANKAFTER, NOVIEW); + N_("Comment Lines"), WITHORSANS(comment_gist), TOGETHER, NOVIEW); +#endif +#ifdef ENABLE_WORDCOMPLETION + add_to_funcs(complete_a_word, MMAIN, + N_("Complete"), WITHORSANS(completion_gist), BLANKAFTER, NOVIEW); #endif #ifndef NANO_TINY add_to_funcs(record_macro, MMAIN, -- GitLab