input: beep when invalid key is pressed at yesno prompt or in linter menu

Just like nano beeps when an unbound key is pressed at other prompts,
or in the help viewer, or in the file browser.

Signed-off-by: Brand Huntsman <alpha@qzx.com>
master
Brand Huntsman 2020-01-17 16:37:19 -07:00 committed by Benno Schulenberg
parent 092711e412
commit 12cf1c9980
2 changed files with 4 additions and 1 deletions

View File

@ -763,6 +763,8 @@ int do_yesno_prompt(bool all, const char *msg)
}
}
#endif /* ENABLE_MOUSE */
else
beep();
}
return choice;

View File

@ -3008,7 +3008,8 @@ void do_linter(void)
last_wait = time(NULL);
statusline(NOTICE, curlint->msg);
}
}
} else
beep();
}
for (curlint = lints; curlint != NULL;) {