diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-04 18:50:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-04 18:50:35 +0000 |
commit | 39be570b2079c38609ae6cc6c6e2bf937649d481 (patch) | |
tree | 99daaadf37fecb72bde436e591dd0eaa91cdeed9 /input.c | |
parent | 04c60283c42618f8f97e49452e1022908b4ec5e6 (diff) |
vi keys from Will Maier.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.47 2008-06-04 16:46:23 nicm Exp $ */ +/* $Id: input.c,v 1.48 2008-06-04 18:50:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -223,8 +223,6 @@ 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); @@ -483,7 +481,8 @@ input_handle_character(u_char ch, struct input_ctx *ictx) { log_debug2("-- ch %zu: %hhu (%c)", ictx->off, ch, ch); - screen_write_put_character(&ictx->ctx, ch); + if (screen_write_put_character(&ictx->ctx, ch)) + ictx->w->flags |= WINDOW_ACTIVITY; } void |