summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-paste-buffer.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/cmd-paste-buffer.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/cmd-paste-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-paste-buffer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-paste-buffer.c b/usr.bin/tmux/cmd-paste-buffer.c
index 6e3cfff1c2a..aa09f906262 100644
--- a/usr.bin/tmux/cmd-paste-buffer.c
+++ b/usr.bin/tmux/cmd-paste-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-paste-buffer.c,v 1.26 2014/10/20 22:29:25 nicm Exp $ */
+/* $OpenBSD: cmd-paste-buffer.c,v 1.27 2014/11/05 23:25:02 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -49,7 +49,6 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_q *cmdq)
struct session *s;
struct paste_buffer *pb;
const char *sepstr, *bufname;
- int pflag;
if (cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp) == NULL)
return (CMD_RETURN_ERROR);
@@ -76,8 +75,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_q *cmdq)
else
sepstr = "\r";
}
- pflag = (wp->screen->mode & MODE_BRACKETPASTE);
- paste_send_pane(pb, wp, sepstr, args_has(args, 'p') && pflag);
+ paste_send_pane(pb, wp, sepstr, args_has(args, 'p'));
}
/* Delete the buffer if -d. */