mirror of
https://github.com/tmux/tmux.git
synced 2026-03-07 00:05:33 +00:00
Pass which clipboard is set through to the terminal, from Axel Lindskog
in GitHub issue 4858.
This commit is contained in:
4
tty.c
4
tty.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user