=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.334 retrieving revision 1.335 diff -c -r1.334 -r1.335 *** src/usr.bin/tmux/window-copy.c 2022/05/30 13:00:19 1.334 --- src/usr.bin/tmux/window-copy.c 2022/06/09 09:12:55 1.335 *************** *** 1,4 **** ! /* $OpenBSD: window-copy.c,v 1.334 2022/05/30 13:00:19 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-copy.c,v 1.335 2022/06/09 09:12:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 4570,4576 **** if (options_get_number(global_options, "set-clipboard") != 0) { screen_write_start_pane(&ctx, wp, NULL); ! screen_write_setselection(&ctx, buf, len); screen_write_stop(&ctx); notify_pane("pane-set-clipboard", wp); } --- 4570,4576 ---- if (options_get_number(global_options, "set-clipboard") != 0) { screen_write_start_pane(&ctx, wp, NULL); ! screen_write_setselection(&ctx, "", buf, len); screen_write_stop(&ctx); notify_pane("pane-set-clipboard", wp); } *************** *** 4644,4650 **** if (options_get_number(global_options, "set-clipboard") != 0) { screen_write_start_pane(&ctx, wp, NULL); ! screen_write_setselection(&ctx, buf, len); screen_write_stop(&ctx); notify_pane("pane-set-clipboard", wp); } --- 4644,4650 ---- if (options_get_number(global_options, "set-clipboard") != 0) { screen_write_start_pane(&ctx, wp, NULL); ! screen_write_setselection(&ctx, "", buf, len); screen_write_stop(&ctx); notify_pane("pane-set-clipboard", wp); }