Add an argument to copy commands to set the prefix for the buffer name,

allows buffers for different sessions to be named separately.
This commit is contained in:
nicm
2019-04-02 09:03:39 +00:00
parent ffa4d48967
commit 7bcc0d16f2
6 changed files with 127 additions and 50 deletions

View File

@ -976,7 +976,7 @@ tty_keys_clipboard(__unused struct tty *tty, const char *buf, size_t len,
/* Create a new paste buffer. */
log_debug("%s: %.*s", __func__, outlen, out);
paste_add(out, outlen);
paste_add(NULL, out, outlen);
return (0);
}