nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 12cf1c99801eb382b4a2274059ebf2de22975a07
parent 092711e4122893144741873aa46ebaec418a8ec9
Author: Brand Huntsman <alpha@qzx.com>
Date:   Fri, 17 Jan 2020 16:37:19 -0700

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>

Diffstat:
Msrc/prompt.c | 2++
Msrc/text.c | 3++-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -763,6 +763,8 @@ int do_yesno_prompt(bool all, const char *msg) } } #endif /* ENABLE_MOUSE */ + else + beep(); } return choice; diff --git a/src/text.c b/src/text.c @@ -3008,7 +3008,8 @@ void do_linter(void) last_wait = time(NULL); statusline(NOTICE, curlint->msg); } - } + } else + beep(); } for (curlint = lints; curlint != NULL;) {