From 436cd349b40a68d48ef41ce810feedaf3ba13638 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 3 May 2014 18:44:18 +0000 Subject: [PATCH] Unfolding long lines that add shortcuts, for visual consistency. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4828 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/global.c | 21 +++++++-------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01c8141d..019f8115 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * src/*.h, src/*.c: Add the ability to colour four elements of nano's interface differently: title bar, status bar, key combo, and function tag. Idea and original patch by Mark Majeres. + * src/global.c (shortcut_init): Unfold long lines consistently. 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 7d70f3fe..18764fe7 100644 --- a/src/global.c +++ b/src/global.c @@ -1067,30 +1067,23 @@ void shortcut_init(void) add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MWHEREISFILE, "Down", get_history_newer_void, 0, FALSE); #endif #ifndef DISABLE_JUSTIFY - add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, - "^W", do_para_begin_void, 0, TRUE); - add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, - "^O", do_para_end_void, 0, TRUE); + add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, "^W", do_para_begin_void, 0, TRUE); + add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, "^O", do_para_end_void, 0, TRUE); 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); #endif - add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, - "M-C", case_sens_void, 0, FALSE); - add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, - "M-B", backwards_void, 0, FALSE); - add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, - "M-R", regexp_void, 0, FALSE); + add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, "M-C", case_sens_void, 0, FALSE); + add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, "M-B", backwards_void, 0, FALSE); + add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH, "M-R", regexp_void, 0, FALSE); add_to_sclist(MMAIN|MHELP, "M-\\", do_first_line, 0, TRUE); add_to_sclist(MMAIN|MHELP, "M-|", do_first_line, 0, TRUE); add_to_sclist(MMAIN|MHELP, "M-/", do_last_line, 0, TRUE); add_to_sclist(MMAIN|MHELP, "M-?", do_last_line, 0, TRUE); - add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MGOTOLINE, - "^Y", do_first_line, 0, TRUE); - add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MGOTOLINE, - "^V", do_last_line, 0, TRUE); + add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MGOTOLINE, "^Y", do_first_line, 0, TRUE); + add_to_sclist(MWHEREIS|MREPLACE|MREPLACEWITH|MGOTOLINE, "^V", do_last_line, 0, TRUE); #ifndef DISABLE_BROWSER add_to_sclist(MBROWSER|MWHEREISFILE, "M-\\", do_first_file, 0, TRUE); -- 2.39.5