summaryrefslogtreecommitdiffstats
path: root/cmd-paste-buffer.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2014-11-09 00:15:51 +0000
committerThomas Adam <thomas@xteddy.org>2014-11-09 00:15:51 +0000
commitfc05bf255af2a39a8168320455f79e7e6d9e915a (patch)
tree513fd3ba523bb758a8977f12618f667ad3a5247d /cmd-paste-buffer.c
parent747cab428158eada08a87a2c0e1ac917ba3293e1 (diff)
parent8f1302282b02f07e0868fbcdb79bb5404010ad4e (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-paste-buffer.c')
-rw-r--r--cmd-paste-buffer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c
index 580cb575..5d91aeff 100644
--- a/cmd-paste-buffer.c
+++ b/cmd-paste-buffer.c
@@ -48,7 +48,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);
@@ -75,8 +74,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. */