in shortcut_init(), move the "Refresh" and "Exit" shortcuts to the
beginning of the help browser shortcut list, for consistency git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2488 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
0bfec6e58d
commit
6439330d59
|
@ -19,6 +19,10 @@ CVS code -
|
|||
do_browser()
|
||||
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
|
||||
consistency. (DLR)
|
||||
- global.c:
|
||||
shortcut_init()
|
||||
- Move the "Refresh" and "Exit" shortcuts to the beginning of
|
||||
the help browser shortcut list, for consistency. (DLR)
|
||||
- nano.c:
|
||||
print1opt_full()
|
||||
- If desc should be empty, allow it to be NULL instead of
|
||||
|
|
16
src/global.c
16
src/global.c
|
@ -794,6 +794,14 @@ void shortcut_init(bool unjustify)
|
|||
#ifndef DISABLE_HELP
|
||||
free_shortcutage(&help_list);
|
||||
|
||||
sc_init_one(&help_list, NANO_REFRESH_KEY, N_("Refresh"),
|
||||
IFHELP(nano_refresh_msg, NANO_NO_KEY), NANO_NO_KEY,
|
||||
NANO_NO_KEY, VIEW, NULL);
|
||||
|
||||
sc_init_one(&help_list, NANO_EXIT_KEY, exit_msg,
|
||||
IFHELP(nano_exit_msg, NANO_NO_KEY), NANO_EXIT_FKEY,
|
||||
NANO_NO_KEY, VIEW, NULL);
|
||||
|
||||
sc_init_one(&help_list, NANO_PREVPAGE_KEY, prev_page_msg,
|
||||
IFHELP(nano_prevpage_msg, NANO_NO_KEY), NANO_PREVPAGE_FKEY,
|
||||
NANO_NO_KEY, VIEW, NULL);
|
||||
|
@ -809,14 +817,6 @@ void shortcut_init(bool unjustify)
|
|||
sc_init_one(&help_list, NANO_NEXTLINE_KEY, N_("Next Line"),
|
||||
IFHELP(nano_nextline_msg, NANO_NO_KEY), NANO_NO_KEY,
|
||||
NANO_NO_KEY, VIEW, NULL);
|
||||
|
||||
sc_init_one(&help_list, NANO_REFRESH_KEY, N_("Refresh"),
|
||||
IFHELP(nano_refresh_msg, NANO_NO_KEY), NANO_NO_KEY,
|
||||
NANO_NO_KEY, VIEW, NULL);
|
||||
|
||||
sc_init_one(&help_list, NANO_EXIT_KEY, exit_msg,
|
||||
IFHELP(nano_exit_msg, NANO_NO_KEY), NANO_EXIT_FKEY,
|
||||
NANO_NO_KEY, VIEW, NULL);
|
||||
#endif
|
||||
|
||||
free_shortcutage(&writefile_list);
|
||||
|
|
Loading…
Reference in New Issue