commit ad79a4fcfb63fb0db092147088b273427dae7d2e
parent 418bd3be34727f1317b29b2da23b20d23f775d68
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 5 Aug 2018 20:07:32 +0200
rcfile: ensure that in the yesno menu Cancel is bound to some keystroke
(In the Search and Replace menus Cancel is not essential. And in the
Goto Line menu Cancel is not needed at all: a simple <Enter> after an
empty answer works fine.)
This fixes the second part of https://savannah.gnu.org/bugs/?54447.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -873,9 +873,9 @@ static void check_vitals_mapped(void)
{
subnfunc *f;
int v;
-#define VITALS 5
- void (*vitals[VITALS])(void) = { do_exit, do_exit, do_cancel, do_cancel, do_cancel };
- int inmenus[VITALS] = { MMAIN, MHELP, MWHEREIS, MREPLACE, MGOTOLINE };
+#define VITALS 3
+ void (*vitals[VITALS])(void) = { do_exit, do_exit, do_cancel };
+ int inmenus[VITALS] = { MMAIN, MHELP, MYESNO };
for (v = 0; v < VITALS; v++) {
for (f = allfuncs; f != NULL; f = f->next) {