mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Make set-clipboard a three-state option so tmux itself can ignore the
sequencess.
This commit is contained in:
@ -1629,7 +1629,7 @@ window_copy_copy_buffer(struct window_pane *wp, const char *bufname, void *buf,
|
||||
{
|
||||
struct screen_write_ctx ctx;
|
||||
|
||||
if (options_get_number(global_options, "set-clipboard")) {
|
||||
if (options_get_number(global_options, "set-clipboard") != 0) {
|
||||
screen_write_start(&ctx, wp, NULL);
|
||||
screen_write_setselection(&ctx, buf, len);
|
||||
screen_write_stop(&ctx);
|
||||
@ -1686,7 +1686,7 @@ window_copy_append_selection(struct window_pane *wp, const char *bufname)
|
||||
if (buf == NULL)
|
||||
return;
|
||||
|
||||
if (options_get_number(global_options, "set-clipboard")) {
|
||||
if (options_get_number(global_options, "set-clipboard") != 0) {
|
||||
screen_write_start(&ctx, wp, NULL);
|
||||
screen_write_setselection(&ctx, buf, len);
|
||||
screen_write_stop(&ctx);
|
||||
|
Reference in New Issue
Block a user