diff --git a/ChangeLog b/ChangeLog index 400003d7..0726ba48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/global.c b/src/global.c index 107ea44c..25c102b9 100644 --- a/src/global.c +++ b/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);