mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-20 23:34:30 +03:00
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.
This commit is contained in:
parent
418bd3be34
commit
ad79a4fcfb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user