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.master
parent
418bd3be34
commit
ad79a4fcfb
|
@ -873,9 +873,9 @@ static void check_vitals_mapped(void)
|
||||||
{
|
{
|
||||||
subnfunc *f;
|
subnfunc *f;
|
||||||
int v;
|
int v;
|
||||||
#define VITALS 5
|
#define VITALS 3
|
||||||
void (*vitals[VITALS])(void) = { do_exit, do_exit, do_cancel, do_cancel, do_cancel };
|
void (*vitals[VITALS])(void) = { do_exit, do_exit, do_cancel };
|
||||||
int inmenus[VITALS] = { MMAIN, MHELP, MWHEREIS, MREPLACE, MGOTOLINE };
|
int inmenus[VITALS] = { MMAIN, 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) {
|
||||||
|
|
Loading…
Reference in New Issue