degesch: count unseen messages
This commit is contained in:
parent
14077ff209
commit
da472bc4f6
@ -811,6 +811,11 @@ buffer_send (struct app_context *ctx, struct buffer *buffer,
|
||||
(buffer == ctx->global_buffer || buffer == ctx->server_buffer))
|
||||
// TODO: show this in another color or something
|
||||
buffer_line_display (ctx, line);
|
||||
else
|
||||
{
|
||||
buffer->unseen_messages_count++;
|
||||
refresh_prompt (ctx);
|
||||
}
|
||||
}
|
||||
|
||||
#define buffer_send_status(ctx, buffer, ...) \
|
||||
@ -893,6 +898,7 @@ buffer_activate (struct app_context *ctx, struct buffer *buffer)
|
||||
// Once we've found where we want to start with the backlog, print it
|
||||
for (; line; line = line->next)
|
||||
buffer_line_display (ctx, line);
|
||||
buffer->unseen_messages_count = 0;
|
||||
|
||||
// The following part shows you why it's not a good idea to use
|
||||
// GNU Readline for this kind of software. Or for anything else, really.
|
||||
|
Loading…
Reference in New Issue
Block a user