The branch, master has been updated via 041a911c43c9c732e5399a7757a4e21ae4ac0607 (commit) from 6ddb06d37232a9d02da996e0a83d5acd52002ffc (commit)
- Log ----------------------------------------------------------------- commit 041a911c43c9c732e5399a7757a4e21ae4ac0607 Author: Nicholas Marriott <nicholas.marri...@gmail.com> Commit: Nicholas Marriott <nicholas.marri...@gmail.com> Create a new context when copying instead of using the input context. The input context may not exist yet. --- window-copy.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/window-copy.c b/window-copy.c index 2dd65eb..51a8f10 100644 --- a/window-copy.c +++ b/window-copy.c @@ -1385,10 +1385,14 @@ window_copy_get_selection(struct window_pane *wp, size_t *len) void window_copy_copy_buffer(struct window_pane *wp, int idx, void *buf, size_t len) { - u_int limit; + u_int limit; + struct screen_write_ctx ctx; - if (options_get_number(&global_options, "set-clipboard")) - screen_write_setselection(&wp->ictx.ctx, buf, len); + if (options_get_number(&global_options, "set-clipboard")) { + screen_write_start(&ctx, wp, NULL); + screen_write_setselection(&ctx, buf, len); + screen_write_stop(&ctx); + } if (idx == -1) { limit = options_get_number(&global_options, "buffer-limit"); ----------------------------------------------------------------------- Summary of changes: window-copy.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) hooks/post-receive -- tmux ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs