nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 011e8de4807798588544a71765b2a8561ca185cc
parent 4e8afb28774436312afac11d34138467d4ad8786
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 15 Dec 2019 15:25:10 +0100

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.

Diffstat:
Msrc/rcfile.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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) {