Commit ae25e15d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

startup: don't produce more than three consecutive beeps

This fixes https://savannah.gnu.org/bugs/?51918.
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment