summaryrefslogtreecommitdiffstats
path: root/cmd-paste-buffer.c
diff options
context:
space:
mode:
authornicm <nicm>2014-11-05 23:25:02 +0000
committernicm <nicm>2014-11-05 23:25:02 +0000
commit79f52825b58e89404b43cb8d466d04a520de4511 (patch)
treeaf7f729fc90600eb98bd18011ceb4112ed7c077b /cmd-paste-buffer.c
parentd24c9d7d3efc3be0d4ba28616c3d5e3ef494258a (diff)
Tidy up mode-mouse check.
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 08ac6fa2..6d5fb9fd 100644
--- a/cmd-paste-buffer.c
+++ b/cmd-paste-buffer.c
@@ -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. */