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:
Nicholas Marriott
2009-08-18 21:41:13 +00:00
parent c488e5e40d
commit 036de0c5e4
2 changed files with 6 additions and 5 deletions

1
tmux.h
View File

@ -617,6 +617,7 @@ struct input_ctx {
u_char *buf;
size_t len;
size_t off;
size_t was;
struct grid_cell cell;