diff options
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -2916,10 +2916,12 @@ log_formatter (struct app_context *ctx, if (buffer->log_file) buffer_line_write_to_log (ctx, line, buffer->log_file); - if (ctx->beep_on_highlight) - if ((flags & BUFFER_LINE_HIGHLIGHT) - || (buffer->type == BUFFER_PM && buffer != ctx->current_buffer)) - input_ding (&ctx->input); + bool unseen_pm = buffer->type == BUFFER_PM + && buffer != ctx->current_buffer + && !(flags & BUFFER_LINE_UNIMPORTANT); + if (ctx->beep_on_highlight + && ((flags & BUFFER_LINE_HIGHLIGHT) || unseen_pm)) + input_ding (&ctx->input); bool can_leak = false; if ((buffer == ctx->global_buffer) |