From 34420660545611af1b24060f55551ebe90d67a0c Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 3 Jun 2017 17:43:01 +0000 Subject: Make set-clipboard a three-state option so tmux itself can ignore the sequencess. --- window-copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window-copy.c') diff --git a/window-copy.c b/window-copy.c index def4b923..31826861 100644 --- a/window-copy.c +++ b/window-copy.c @@ -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); -- cgit