=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.71 retrieving revision 1.72 diff -u -r1.71 -r1.72 --- src/usr.bin/tmux/window-copy.c 2011/05/18 18:06:36 1.71 +++ src/usr.bin/tmux/window-copy.c 2011/05/18 20:24:29 1.72 @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.71 2011/05/18 18:06:36 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.72 2011/05/18 20:24:29 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1344,6 +1344,9 @@ return; } off--; /* remove final \n */ + + if (options_get_number(&global_options, "set-clipboard")) + screen_write_setselection(&wp->ictx.ctx, buf, off); /* Add the buffer to the stack. */ limit = options_get_number(&global_options, "buffer-limit");