From be3e302a7611a3770af188cd7c55c019727adf05 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 3 May 2014 20:27:25 +0000 Subject: [PATCH] Paragraph jumping only makes sense in the MAIN editing menu, thus removing the shortcuts from all others. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4831 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/global.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2f5d8f8b..55102822 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ the same manner as in the help lines, and group them per menu. * src/global.c (shortcut_init): Remove the search-mode toggles from the inappropriate WHEREISFILE and REPLACEWITH menus. + * src/global.c (shortcut_init): Paragraph jumping only makes + sense in the main editing menu; remove it from all others. 2014-04-30 Benno Schulenberg * src/*, doc/*: Update the years in the copyright notices -- there diff --git a/src/global.c b/src/global.c index 45ec050d..20125d7a 100644 --- a/src/global.c +++ b/src/global.c @@ -1061,10 +1061,10 @@ void shortcut_init(void) add_to_sclist(MMAIN|MHELP|MBROWSER, "^N", do_down_void, 0, TRUE); add_to_sclist(MMAIN|MHELP|MBROWSER, "Down", do_down_void, 0, TRUE); #ifndef DISABLE_JUSTIFY - add_to_sclist(MMOST, "M-(", do_para_begin_void, 0, TRUE); - add_to_sclist(MMOST, "M-9", do_para_begin_void, 0, TRUE); - add_to_sclist(MMOST, "M-)", do_para_end_void, 0, TRUE); - add_to_sclist(MMOST, "M-0", do_para_end_void, 0, TRUE); + add_to_sclist(MMAIN, "M-(", do_para_begin_void, 0, TRUE); + add_to_sclist(MMAIN, "M-9", do_para_begin_void, 0, TRUE); + add_to_sclist(MMAIN, "M-)", do_para_end_void, 0, TRUE); + add_to_sclist(MMAIN, "M-0", do_para_end_void, 0, TRUE); #endif #ifndef NANO_TINY add_to_sclist(MMAIN, "M--", do_scroll_up, 0, TRUE); -- 2.39.5