summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 86ced13..2c64e50 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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.