summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-11-15 01:32:49 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-11-15 01:32:49 +0100
commit153d8c55d94146b83e06859f583a69f8ecfb5aba (patch)
tree6a8aa6429cd7f7df82cde859613d15d41b8f8b59
parentd14bc2df53b8f61811b21a7b4a2ec8ec9e414a07 (diff)
downloadxK-153d8c55d94146b83e06859f583a69f8ecfb5aba.tar.gz
xK-153d8c55d94146b83e06859f583a69f8ecfb5aba.tar.xz
xK-153d8c55d94146b83e06859f583a69f8ecfb5aba.zip
degesch: don't spam with all unseen messages
On high-traffic channels, it has shown to take quite some time.
-rw-r--r--degesch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/degesch.c b/degesch.c
index d0aca74..03244f4 100644
--- a/degesch.c
+++ b/degesch.c
@@ -3168,8 +3168,7 @@ buffer_print_backlog (struct app_context *ctx, struct buffer *buffer)
free (buffer_name_localized);
// That is, minus the buffer switch line and the readline prompt
- int display_limit = MAX (MAX (10,
- (int) buffer->unseen_messages_count), g_terminal.lines - 2);
+ int display_limit = MAX (10, g_terminal.lines - 2);
struct buffer_line *line = buffer->lines_tail;
int to_display = line != NULL;