From ad79a4fcfb63fb0db092147088b273427dae7d2e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 5 Aug 2018 20:07:32 +0200 Subject: [PATCH] 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 after an empty answer works fine.) This fixes the second part of https://savannah.gnu.org/bugs/?54447. --- src/rcfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index e9470c58..cbf39dc2 100644 --- 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) {