startup: don't produce more than three consecutive beeps
This fixes https://savannah.gnu.org/bugs/?51918.master
parent
21ffa883f7
commit
ae25e15d61
|
@ -2159,7 +2159,8 @@ void statusline(message_type importance, const char *msg, ...)
|
||||||
if (importance == ALERT) {
|
if (importance == ALERT) {
|
||||||
if (++alerts > 3 && !ISSET(NO_PAUSES))
|
if (++alerts > 3 && !ISSET(NO_PAUSES))
|
||||||
msg = _("Further warnings were suppressed");
|
msg = _("Further warnings were suppressed");
|
||||||
beep();
|
else if (alerts < 4)
|
||||||
|
beep();
|
||||||
}
|
}
|
||||||
|
|
||||||
lastmessage = importance;
|
lastmessage = importance;
|
||||||
|
|
Loading…
Reference in New Issue