Pass which clipboard is set through to the terminal, from Axel Lindskog

in GitHub issue 4858.
This commit is contained in:
nicm
2026-02-18 09:10:31 +00:00
parent fedd4440f0
commit 03f8690f9c
5 changed files with 39 additions and 27 deletions

View File

@@ -2275,14 +2275,14 @@ screen_write_overwrite(struct screen_write_ctx *ctx, struct grid_cell *gc,
/* Set external clipboard. */
void
screen_write_setselection(struct screen_write_ctx *ctx, const char *flags,
screen_write_setselection(struct screen_write_ctx *ctx, const char *clip,
u_char *str, u_int len)
{
struct tty_ctx ttyctx;
screen_write_initctx(ctx, &ttyctx, 0);
ttyctx.ptr = str;
ttyctx.ptr2 = (void *)flags;
ttyctx.ptr2 = (void *)clip;
ttyctx.num = len;
tty_write(tty_cmd_setselection, &ttyctx);