From c3e4a1fadde112cb7a4ce9741ff4fd8084db886b Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 17 Mar 2014 11:47:49 +0000 Subject: [PATCH] Showing ^F and ^B in the help lines of the tiny version. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4646 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/global.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4be35740..f7750f53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-17 Benno Schulenberg + * src/global.c (shortcut_init) - Show ^F and ^B instead of kright + and kleft in the help lines of the tiny version. + 2014-03-16 Benno Schulenberg * src/nano.h - Display more help items when the terminal is wider. diff --git a/src/global.c b/src/global.c index 543b2c82..9963427d 100644 --- a/src/global.c +++ b/src/global.c @@ -1192,13 +1192,15 @@ void shortcut_init(bool unjustify) add_to_sclist(MMAIN, "M-U", do_undo, 0, TRUE); add_to_sclist(MMAIN, "M-E", do_redo, 0, TRUE); } +#endif add_to_sclist(MALL, "^F", do_right, 0, TRUE); add_to_sclist(MALL, "^B", do_left, 0, TRUE); + add_to_sclist(MALL, "kright", do_right, 0, TRUE); + add_to_sclist(MALL, "kleft", do_left, 0, TRUE); +#ifndef NANO_TINY add_to_sclist(MMAIN, "^Space", do_next_word_void, 0, TRUE); add_to_sclist(MMAIN, "M-Space", do_prev_word_void, 0, TRUE); #endif - add_to_sclist(MALL, "kright", do_right, 0, TRUE); - add_to_sclist(MALL, "kleft", do_left, 0, TRUE); add_to_sclist(MMAIN, "^Q", xon_complaint, 0, TRUE); add_to_sclist(MMAIN, "^S", xoff_complaint, 0, TRUE); add_to_sclist(MMAIN|MHELP|MBROWSER, "^P", do_up_void, 0, TRUE);