From e07519804957d5c41aa70e7f1132e29fe5f84862 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 25 Aug 2014 13:13:19 +0000 Subject: [PATCH] Don't allow pasting into input-disabled panes, from Anish R Athalye. --- paste.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paste.c b/paste.c index 08f4bab5..586fbec8 100644 --- a/paste.c +++ b/paste.c @@ -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);