Cosmetic tweaks.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4761 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-13 12:16:37 +00:00
parent 7b4faba8ef
commit f803ef5aea
2 changed files with 9 additions and 5 deletions

View File

@ -4,6 +4,7 @@
* global.c (shortcut_init): Remove mistaken browser item from the
Go-To-Line menu.
* global.c (shortcut_init): Delete a misplaced setting of 'currmenu'.
* global.c (shortcut_init, strtomenu): Cosmetic tweaks.
2014-04-10 Benno Schulenberg <bensberg@justemail.net>
* doc/syntax/Makefile.am: Add four recent syntaxes to the packlist.

View File

@ -735,6 +735,8 @@ void shortcut_init(void)
free(f);
}
/* Start populating the different menus with functions. */
add_to_funcs(do_help_void,
(MMAIN|MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE|MWRITEFILE|MINSERTFILE|MEXTCMD|MSPELL|MBROWSER|MWHEREISFILE|MGOTODIR|MLINTER),
get_help_msg, IFSCHELP(nano_help_msg), FALSE, VIEW);
@ -1077,6 +1079,8 @@ void shortcut_init(void)
goto_dir_msg, IFSCHELP(nano_gotodir_msg), FALSE, VIEW);
#endif
/* Start associating key combos with functions in specific menus. */
add_to_sclist(MMAIN|MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE|MWRITEFILE|MINSERTFILE|MEXTCMD|MSPELL|MBROWSER|MWHEREISFILE|MGOTODIR|MLINTER,
"^G", do_help_void, 0, TRUE);
add_to_sclist(MMAIN|MWHEREIS|MREPLACE|MREPLACE2|MGOTOLINE|MWRITEFILE|MINSERTFILE|MEXTCMD|MSPELL|MBROWSER|MWHEREISFILE|MGOTODIR|MLINTER,
@ -1248,8 +1252,7 @@ void shortcut_init(void)
add_to_sclist(MWRITEFILE, "M-A", append_void, 0, FALSE);
add_to_sclist(MWRITEFILE, "M-P", prepend_void, 0, FALSE);
add_to_sclist(MWRITEFILE, "M-B", backup_file_void, 0, FALSE);
add_to_sclist(MWRITEFILE, "^T", to_files_void, 0, FALSE);
add_to_sclist(MINSERTFILE, "^T", to_files_void, 0, FALSE);
add_to_sclist(MWRITEFILE|MINSERTFILE, "^T", to_files_void, 0, FALSE);
add_to_sclist(MINSERTFILE, "^X", ext_cmd_void, 0, FALSE);
add_to_sclist(MMAIN, "^Z", do_suspend_void, 0, FALSE);
add_to_sclist(MMAIN, "^L", total_refresh, 0, TRUE);