nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit be3e302a7611a3770af188cd7c55c019727adf05
parent 672821cb68e6aca80e97e424368e9a43fcffab57
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat,  3 May 2014 20:27:25 +0000

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

Diffstat:
MChangeLog | 2++
Msrc/global.c | 8++++----
2 files changed, 6 insertions(+), 4 deletions(-)

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