degesch: don't spam with all unseen messages
On high-traffic channels, it has shown to take quite some time.
This commit is contained in:
parent
d14bc2df53
commit
153d8c55d9
|
@ -3168,8 +3168,7 @@ buffer_print_backlog (struct app_context *ctx, struct buffer *buffer)
|
||||||
free (buffer_name_localized);
|
free (buffer_name_localized);
|
||||||
|
|
||||||
// That is, minus the buffer switch line and the readline prompt
|
// That is, minus the buffer switch line and the readline prompt
|
||||||
int display_limit = MAX (MAX (10,
|
int display_limit = MAX (10, g_terminal.lines - 2);
|
||||||
(int) buffer->unseen_messages_count), g_terminal.lines - 2);
|
|
||||||
|
|
||||||
struct buffer_line *line = buffer->lines_tail;
|
struct buffer_line *line = buffer->lines_tail;
|
||||||
int to_display = line != NULL;
|
int to_display = line != NULL;
|
||||||
|
|
Loading…
Reference in New Issue