Hey,
Looks like paste-buffer does not work across all panes when synchronize-panes
is on, this patch attempts to fix this (also attached):
https://github.com/tamentis/tmux/commit/10dff02baba3b11023cb4226ec6826d478e8e5e1
-b
diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c
index e2fe012..3c35cc4 100644
--- a/cmd-paste-buffer.c
+++ b/cmd-paste-buffer.c
@@ -47,9 +47,10 @@ int
cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct args *args = self->args;
- struct window_pane *wp;
+ struct window_pane *wp, *wp2;
struct session *s;
struct paste_buffer *pb;
+ struct window *w = wp->window;
const char *sepstr;
char *cause;
int buffer;
@@ -89,7 +90,17 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
}
pflag = args_has(args, 'p') &&
(wp->screen->mode & MODE_BRACKETPASTE);
+
cmd_paste_buffer_filter(wp, pb->data, pb->size, sepstr, pflag);
+ if (options_get_number(&w->options, "synchronize-panes")) {
+ TAILQ_FOREACH(wp2, &wp->window->panes, entry) {
+ if (wp2 == wp || wp2->mode != NULL)
+ continue;
+ if (wp2->fd != -1 && window_pane_visible(wp2))
+ cmd_paste_buffer_filter(wp2, pb->data,
+ pb->size, sepstr, pflag);
+ }
+ }
}
/* Delete the buffer if -d. */
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users