summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/paste.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2014-11-05 23:25:02 +0000
committernicm <nicm@openbsd.org>2014-11-05 23:25:02 +0000
commit75cb6554571fcafb212f9714a206c672ac193767 (patch)
tree52770bb28bf64b322cb6165f5650d8a77881f032 /usr.bin/tmux/paste.c
parentDo not put a space between status-left/status-right and the window list, (diff)
downloadwireguard-openbsd-75cb6554571fcafb212f9714a206c672ac193767.tar.xz
wireguard-openbsd-75cb6554571fcafb212f9714a206c672ac193767.zip
Tidy up mode-mouse check.
Diffstat (limited to 'usr.bin/tmux/paste.c')
-rw-r--r--usr.bin/tmux/paste.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/paste.c b/usr.bin/tmux/paste.c
index 7f88c147478..c779048e149 100644
--- a/usr.bin/tmux/paste.c
+++ b/usr.bin/tmux/paste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paste.c,v 1.25 2014/10/08 17:35:58 nicm Exp $ */
+/* $OpenBSD: paste.c,v 1.26 2014/11/05 23:25:02 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -301,7 +301,7 @@ paste_send_pane(struct paste_buffer *pb, struct window_pane *wp,
if (wp->flags & PANE_INPUTOFF)
return;
- if (bracket)
+ if (bracket && (wp->screen->mode & MODE_BRACKETPASTE))
bufferevent_write(wp->event, "\033[200~", 6);
seplen = strlen(sep);
@@ -315,6 +315,6 @@ paste_send_pane(struct paste_buffer *pb, struct window_pane *wp,
if (end != data)
bufferevent_write(wp->event, data, end - data);
- if (bracket)
+ if (bracket && (wp->screen->mode & MODE_BRACKETPASTE))
bufferevent_write(wp->event, "\033[201~", 6);
}