tweaks: slightly improve error message when vital function is unmapped

This fails to fix https://savannah.gnu.org/bugs/?54449, because
it would take far too much code for an exceptional case.
master
Benno Schulenberg 2018-08-06 19:31:46 +02:00
parent db1893ef2d
commit 4c66a6259c
1 changed files with 2 additions and 2 deletions

View File

@ -882,8 +882,8 @@ static void check_vitals_mapped(void)
if (f->func == vitals[v] && f->menus & inmenus[v]) {
const sc *s = first_sc_for(inmenus[v], f->func);
if (!s) {
fprintf(stderr, _("Fatal error: no keys mapped for function "
"\"%s\". Exiting.\n"), f->desc);
fprintf(stderr, _("No key is bound to function '%s' in "
"some menu. Exiting.\n"), f->desc);
fprintf(stderr, _("If needed, use nano with the -I option "
"to adjust your nanorc settings.\n"));
exit(1);