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
master
Benno Schulenberg 2014-05-03 20:27:25 +00:00
parent 672821cb68
commit be3e302a76
2 changed files with 6 additions and 4 deletions

View File

@ -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 <bensberg@justemail.net>
* src/*, doc/*: Update the years in the copyright notices -- there

View File

@ -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);