Sync OpenBSD patchset 275:

Instead of just checking for an empty buffer, which may not be the case if
there is unconsumed data, save the previous size and use it instead. This means
that activity monitoring should work in this (unlikely) event.

Also remove a debugging statement that no longer seems necessary.
This commit is contained in:
Tiago Cunha
2009-08-20 11:48:01 +00:00
parent d895d4a9f0
commit 4631c07483
2 changed files with 8 additions and 7 deletions

3
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.423 2009-08-20 11:35:16 tcunha Exp $ */
/* $Id: tmux.h,v 1.424 2009-08-20 11:48:01 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -615,6 +615,7 @@ struct input_ctx {
u_char *buf;
size_t len;
size_t off;
size_t was;
struct grid_cell cell;