From 11f0f812c5526126706dd1f11ed072faf0c4a9b2 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 19 Aug 2009 09:04:48 +0000 Subject: Didn't mean to commit this stuff. --- input.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 0fb7f552..a80d664c 100644 --- a/input.c +++ b/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.13 2009/08/18 21:41:13 nicm Exp $ */ +/* $Id: input.c,v 1.92 2009-08-19 09:04:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -235,8 +235,6 @@ input_init(struct window_pane *wp) ictx->saved_cy = 0; input_state(ictx, input_state_first); - - ictx->was = 0; } void @@ -254,9 +252,8 @@ input_parse(struct window_pane *wp) struct input_ctx *ictx = &wp->ictx; u_char ch; - if (BUFFER_USED(wp->in) == ictx->was) + if (BUFFER_USED(wp->in) == 0) return; - wp->window->flags |= WINDOW_ACTIVITY; ictx->buf = BUFFER_OUT(wp->in); ictx->len = BUFFER_USED(wp->in); @@ -264,11 +261,15 @@ input_parse(struct window_pane *wp) ictx->wp = wp; + log_debug2("entry; buffer=%zu", ictx->len); + if (wp->mode == NULL) screen_write_start(&ictx->ctx, wp, &wp->base); else screen_write_start(&ictx->ctx, NULL, &wp->base); + if (ictx->off != ictx->len) + wp->window->flags |= WINDOW_ACTIVITY; while (ictx->off < ictx->len) { ch = ictx->buf[ictx->off++]; ictx->state(ch, ictx); @@ -277,7 +278,6 @@ input_parse(struct window_pane *wp) screen_write_stop(&ictx->ctx); buffer_remove(wp->in, ictx->len); - ictx->was = BUFFER_USED(wp->in); } void -- cgit v1.2.3