degesch: fix beeping on "unimportant" PM events
Which in practice means stop beeping on quits in PM buffers.
This commit is contained in:
parent
a8a852d4b3
commit
fe88e30bf5
|
@ -2916,9 +2916,11 @@ log_formatter (struct app_context *ctx,
|
||||||
if (buffer->log_file)
|
if (buffer->log_file)
|
||||||
buffer_line_write_to_log (ctx, line, buffer->log_file);
|
buffer_line_write_to_log (ctx, line, buffer->log_file);
|
||||||
|
|
||||||
if (ctx->beep_on_highlight)
|
bool unseen_pm = buffer->type == BUFFER_PM
|
||||||
if ((flags & BUFFER_LINE_HIGHLIGHT)
|
&& buffer != ctx->current_buffer
|
||||||
|| (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);
|
input_ding (&ctx->input);
|
||||||
|
|
||||||
bool can_leak = false;
|
bool can_leak = false;
|
||||||
|
|
Loading…
Reference in New Issue