rcfile: demand that function 'exit' is bound in the file browser

For symmetry with the help viewer.

Even though the user could still exit with the bare Q, E, or X keys,
these are not listed in the help text, so they don't really count.
master
Benno Schulenberg 2019-12-15 15:25:10 +01:00
parent 4e8afb2877
commit 011e8de480
1 changed files with 3 additions and 3 deletions

View File

@ -1281,9 +1281,9 @@ static void check_vitals_mapped(void)
{ {
funcstruct *f; funcstruct *f;
int v; int v;
#define VITALS 3 #define VITALS 4
void (*vitals[VITALS])(void) = { do_exit, do_exit, do_cancel }; void (*vitals[VITALS])(void) = { do_exit, do_exit, do_exit, do_cancel };
int inmenus[VITALS] = { MMAIN, MHELP, MYESNO }; int inmenus[VITALS] = { MMAIN, MBROWSER, MHELP, MYESNO };
for (v = 0; v < VITALS; v++) { for (v = 0; v < VITALS; v++) {
for (f = allfuncs; f != NULL; f = f->next) { for (f = allfuncs; f != NULL; f = f->next) {