commit c3e4a1fadde112cb7a4ce9741ff4fd8084db886b
parent 8977c4b1537743946dfba2cc1643bee016c1217e
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Mon, 17 Mar 2014 11:47:49 +0000
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
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,7 @@
+2014-03-17 Benno Schulenberg <bensberg@justemail.net>
+ * 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 <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
@@ -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);