commit 88ff6a7f3d82201e0ccc49559719feaf05a5754b
parent 5ac8651729cfb7c6585689b8847dcdb54f3dec57
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 17 Mar 2014 21:26:53 +0000
Putting ^B and ^F in the same order as other command keys:
first the backward, then the forward motion.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4651 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -8,6 +8,8 @@
* src/{nano.h,proto.h,color.c,cut.c,files.c,global.c,help.c,nano.c,
search.c,text.c,utils.c} - Add, fix, and remove some #endif comments,
remove an obsolete comment, and remove some superfluous #ifndefs.
+ * src/global.c (shortcut_init) - Put ^B and ^F in the same order as
+ all other command keys: first the backward then the forward motion.
2014-03-16 Benno Schulenberg <bensberg@justemail.net>
* src/nano.h - Display more help items when the terminal is wider.
diff --git a/src/global.c b/src/global.c
@@ -903,25 +903,20 @@ void shortcut_init(bool unjustify)
}
#endif /* !NANO_TINY */
- add_to_funcs(do_right, MMAIN, N_("Forward"), IFSCHELP(nano_forward_msg),
- FALSE, VIEW);
-
-#ifndef DISABLE_BROWSER
- add_to_funcs(do_right, MBROWSER, N_("Forward"), IFSCHELP(nano_forwardfile_msg),
- FALSE, VIEW);
-#endif
-
- add_to_funcs(do_right, MALL, "", "", FALSE, VIEW);
-
add_to_funcs(do_left, MMAIN, N_("Back"), IFSCHELP(nano_back_msg),
FALSE, VIEW);
+ add_to_funcs(do_right, MMAIN, N_("Forward"), IFSCHELP(nano_forward_msg),
+ FALSE, VIEW);
#ifndef DISABLE_BROWSER
add_to_funcs(do_left, MBROWSER, N_("Back"), IFSCHELP(nano_backfile_msg),
FALSE, VIEW);
+ add_to_funcs(do_right, MBROWSER, N_("Forward"), IFSCHELP(nano_forwardfile_msg),
+ FALSE, VIEW);
#endif
add_to_funcs(do_left, MALL, "", "", FALSE, VIEW);
+ add_to_funcs(do_right, MALL, "", "", FALSE, VIEW);
#ifndef NANO_TINY
add_to_funcs(do_prev_word_void, MMAIN, N_("Prev Word"),