Don't allow pasting into input-disabled panes, from Anish R Athalye.

This commit is contained in:
nicm 2014-08-25 13:13:19 +00:00
parent 2b79d36652
commit e075198049

View File

@ -298,6 +298,9 @@ paste_send_pane(struct paste_buffer *pb, struct window_pane *wp,
const char *data = pb->data, *end = data + pb->size, *lf;
size_t seplen;
if (wp->flags & PANE_INPUTOFF)
return;
if (bracket)
bufferevent_write(wp->event, "\033[200~", 6);