From 011e8de4807798588544a71765b2a8561ca185cc Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 15 Dec 2019 15:25:10 +0100 Subject: [PATCH] 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. --- src/rcfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index f4d18e06..9764bed1 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1281,9 +1281,9 @@ static void check_vitals_mapped(void) { funcstruct *f; int v; -#define VITALS 3 - void (*vitals[VITALS])(void) = { do_exit, do_exit, do_cancel }; - int inmenus[VITALS] = { MMAIN, MHELP, MYESNO }; +#define VITALS 4 + void (*vitals[VITALS])(void) = { do_exit, do_exit, do_exit, do_cancel }; + int inmenus[VITALS] = { MMAIN, MBROWSER, MHELP, MYESNO }; for (v = 0; v < VITALS; v++) { for (f = allfuncs; f != NULL; f = f->next) {