diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-08-20 11:48:01 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-08-20 11:48:01 +0000 |
commit | 4631c074836b5b75e8b170a460f53de8f5507096 (patch) | |
tree | e5e950caf18b8cfac2a9d411051d41feb3c48fd2 /tmux.h | |
parent | d895d4a9f0567b4bc26cfe6989073b2a5add3d4a (diff) | |
download | rtmux-4631c074836b5b75e8b170a460f53de8f5507096.tar.gz rtmux-4631c074836b5b75e8b170a460f53de8f5507096.tar.bz2 rtmux-4631c074836b5b75e8b170a460f53de8f5507096.zip |
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.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |