=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/control-notify.c,v retrieving revision 1.29 retrieving revision 1.30 diff -c -r1.29 -r1.30 *** src/usr.bin/tmux/control-notify.c 2021/03/16 09:14:58 1.29 --- src/usr.bin/tmux/control-notify.c 2022/08/15 09:10:34 1.30 *************** *** 1,4 **** ! /* $OpenBSD: control-notify.c,v 1.29 2021/03/16 09:14:58 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: control-notify.c,v 1.30 2022/08/15 09:10:34 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott *************** *** 232,236 **** --- 232,249 ---- control_write(c, "%%session-window-changed $%u @%u", s->id, s->curw->window->id); + } + } + + void + control_notify_paste_buffer_changed(const char *name) + { + struct client *c; + + TAILQ_FOREACH(c, &clients, entry) { + if (!CONTROL_SHOULD_NOTIFY_CLIENT(c)) + continue; + + control_write(c, "%%paste-changed %s", name); } }