startup: don't produce more than three consecutive beeps

This fixes https://savannah.gnu.org/bugs/?51918.
This commit is contained in:
Benno Schulenberg 2017-09-02 15:31:02 +02:00
parent 21ffa883f7
commit ae25e15d61

View File

@ -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;