mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-12 17:08:14 +01:00
Don't allow pasting into input-disabled panes, from Anish R Athalye.
This commit is contained in:
parent
2b79d36652
commit
e075198049
3
paste.c
3
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;
|
const char *data = pb->data, *end = data + pb->size, *lf;
|
||||||
size_t seplen;
|
size_t seplen;
|
||||||
|
|
||||||
|
if (wp->flags & PANE_INPUTOFF)
|
||||||
|
return;
|
||||||
|
|
||||||
if (bracket)
|
if (bracket)
|
||||||
bufferevent_write(wp->event, "\033[200~", 6);
|
bufferevent_write(wp->event, "\033[200~", 6);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user