Improving the arrangement of help items under certain compilation conditions.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4913 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-05-27 12:17:49 +00:00
parent 022d32a647
commit 0d5e732793
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-05-27 Benno Schulenberg <bensberg@justemail.net>
* src/global.c (shortcut_init): Improve the arrangement of help items
under certain compilation conditions.
2014-05-26 Benno Schulenberg <bensberg@justemail.net>
* src/cut.c (cut_line): Fix compilation with --enable-tiny.
* src/text.c (do_linter): Avoid a warning with --enable-tiny.

View File

@ -767,8 +767,12 @@ void shortcut_init(void)
add_to_funcs(do_cursorpos_void, MMAIN, N_("Cur Pos"),
IFSCHELP(nano_cursorpos_msg), FALSE, VIEW);
#if !defined(NANO_TINY) || defined(DISABLE_COLOR)
/* Conditionally placing this one here or further on, to keep the
* help items nicely paired in most conditions. */
add_to_funcs(do_gotolinecolumn_void, MMAIN|MWHEREIS,
gotoline_tag, IFSCHELP(nano_gotoline_msg), TRUE, VIEW);
#endif
add_to_funcs(do_page_up, MMAIN|MHELP|MBROWSER,
N_("Prev Page"), IFSCHELP(nano_prevpage_msg), FALSE, VIEW);
@ -858,6 +862,11 @@ void shortcut_init(void)
IFSCHELP(nano_nextfile_msg), TRUE, VIEW);
#endif
#if defined(NANO_TINY) && !defined(DISABLE_COLOR)
add_to_funcs(do_gotolinecolumn_void, MMAIN|MWHEREIS,
gotoline_tag, IFSCHELP(nano_gotoline_msg), TRUE, VIEW);
#endif
add_to_funcs(do_verbatim_input, MMAIN, N_("Verbatim"),
IFSCHELP(nano_verbatim_msg), FALSE, NOVIEW);