mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
startup: don't produce more than three consecutive beeps
This fixes https://savannah.gnu.org/bugs/?51918.
This commit is contained in:
parent
21ffa883f7
commit
ae25e15d61
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user