diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-11-05 23:25:03 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2014-11-05 23:25:03 +0000 |
commit | 1c8f30c7775f0445adf9e7b567434a48079c12df (patch) | |
tree | edff5e899ebaf0f348fc81d598eec2556f92ed1b /usr.bin/tmux/paste.c | |
parent | a00b3bf0b9f6fdabf8d3027638ffd26cf87746f8 (diff) |
Tidy up mode-mouse check.
Diffstat (limited to 'usr.bin/tmux/paste.c')
-rw-r--r-- | usr.bin/tmux/paste.c | 6 |
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); } |