nano

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

commit ae25e15d610b9c7daf03bd66acd49bdd03e82c19
parent 21ffa883f76c5850e2a54929467dff980f1d9ab1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat,  2 Sep 2017 15:31:02 +0200

startup: don't produce more than three consecutive beeps

This fixes https://savannah.gnu.org/bugs/?51918.

Diffstat:
Msrc/winio.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2159,7 +2159,8 @@ void statusline(message_type importance, const char *msg, ...) if (importance == ALERT) { if (++alerts > 3 && !ISSET(NO_PAUSES)) msg = _("Further warnings were suppressed"); - beep(); + else if (alerts < 4) + beep(); } lastmessage = importance;