Do not use evbuffer_add_buffer because it is destructive and doesn't

work in newer libevent.
This commit is contained in:
nicm
2019-05-07 10:25:15 +00:00
parent 45ae9a8e35
commit 69440d19b7
5 changed files with 24 additions and 25 deletions

View File

@ -199,13 +199,13 @@ notify_hook(struct cmdq_item *item, const char *name)
}
void
notify_input(struct window_pane *wp, struct evbuffer *input)
notify_input(struct window_pane *wp, const u_char *buf, size_t len)
{
struct client *c;
TAILQ_FOREACH(c, &clients, entry) {
if (c->flags & CLIENT_CONTROL)
control_notify_input(c, wp, input);
control_notify_input(c, wp, buf, len);
}
}