version 1.178, 2020/05/16 16:44:54 |
version 1.179, 2020/05/21 07:24:13 |
|
|
void |
void |
input_parse_pane(struct window_pane *wp) |
input_parse_pane(struct window_pane *wp) |
{ |
{ |
struct evbuffer *evb = wp->event->input; |
void *new_data; |
|
size_t new_size; |
|
|
input_parse_buffer(wp, EVBUFFER_DATA(evb), EVBUFFER_LENGTH(evb)); |
new_data = window_pane_get_new_data(wp, &wp->offset, &new_size); |
evbuffer_drain(evb, EVBUFFER_LENGTH(evb)); |
input_parse_buffer(wp, new_data, new_size); |
|
window_pane_update_used_data(wp, &wp->offset, new_size, 1); |
} |
} |
|
|
/* Parse given input. */ |
/* Parse given input. */ |
|
|
|
|
window_update_activity(wp->window); |
window_update_activity(wp->window); |
wp->flags |= PANE_CHANGED; |
wp->flags |= PANE_CHANGED; |
notify_input(wp, buf, len); |
|
|
|
/* NULL wp if there is a mode set as don't want to update the tty. */ |
/* NULL wp if there is a mode set as don't want to update the tty. */ |
if (TAILQ_EMPTY(&wp->modes)) |
if (TAILQ_EMPTY(&wp->modes)) |