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

4
tty.c
View File

@@ -1993,7 +1993,7 @@ tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx)
}
void
tty_set_selection(struct tty *tty, const char *flags, const char *buf,
tty_set_selection(struct tty *tty, const char *clip, const char *buf,
size_t len)
{
char *encoded;
@@ -2009,7 +2009,7 @@ tty_set_selection(struct tty *tty, const char *flags, const char *buf,
b64_ntop(buf, len, encoded, size);
tty->flags |= TTY_NOBLOCK;
tty_putcode_ss(tty, TTYC_MS, flags, encoded);
tty_putcode_ss(tty, TTYC_MS, clip, encoded);
free(encoded);
}