summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-04 19:20:10 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-04 19:20:10 +0000
commit7842d2967383f119dbbcc3967caebee5407e939b (patch)
treefa359e0b2727671e24eeb89a29667d92dac01430 /input.c
parent39be570b2079c38609ae6cc6c6e2bf937649d481 (diff)
Revert attempt to fix stray updates, turns out it was clock :-/.
Diffstat (limited to 'input.c')
-rw-r--r--input.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/input.c b/input.c
index 8ca4e406..fcb97316 100644
--- a/input.c
+++ b/input.c
@@ -1,4 +1,4 @@
-/* $Id: input.c,v 1.48 2008-06-04 18:50:34 nicm Exp $ */
+/* $Id: input.c,v 1.49 2008-06-04 19:20:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -223,6 +223,8 @@ input_parse(struct window *w)
else
screen_write_start(&ictx->ctx, &w->base, NULL, NULL);
+ if (ictx->off != ictx->len)
+ w->flags |= WINDOW_ACTIVITY;
while (ictx->off < ictx->len) {
ch = ictx->buf[ictx->off++];
ictx->state(ch, ictx);
@@ -481,8 +483,7 @@ input_handle_character(u_char ch, struct input_ctx *ictx)
{
log_debug2("-- ch %zu: %hhu (%c)", ictx->off, ch, ch);
- if (screen_write_put_character(&ictx->ctx, ch))
- ictx->w->flags |= WINDOW_ACTIVITY;
+ screen_write_put_character(&ictx->ctx, ch);
}
void