artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9b96e5
)
Don't allow pasting into input-disabled panes, from Anish R Athalye.
author
nicm
<nicm@openbsd.org>
Mon, 25 Aug 2014 13:13:19 +0000
(13:13 +0000)
committer
nicm
<nicm@openbsd.org>
Mon, 25 Aug 2014 13:13:19 +0000
(13:13 +0000)
usr.bin/tmux/paste.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/paste.c
b/usr.bin/tmux/paste.c
index
c9339b2
..
fb56c00
100644
(file)
--- a/
usr.bin/tmux/paste.c
+++ b/
usr.bin/tmux/paste.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: paste.c,v 1.2
1 2014/06/20 11:00
:19 nicm Exp $ */
+/* $OpenBSD: paste.c,v 1.2
2 2014/08/25 13:13
:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@
-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);