aboutsummaryrefslogtreecommitdiff
path: root/window-copy.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-06-03 20:01:10 +0100
committerThomas Adam <thomas@xteddy.org>2017-06-03 20:01:10 +0100
commit757eb060cdfe685bed9f4b4dbf269a7077d58e6e (patch)
tree4a3732b2370c75cab54df554cd20b8f1180f77e3 /window-copy.c
parent80235d6fdd466b0aacaa5fa6c411bd6c38160aef (diff)
parent34420660545611af1b24060f55551ebe90d67a0c (diff)
downloadrtmux-757eb060cdfe685bed9f4b4dbf269a7077d58e6e.tar.gz
rtmux-757eb060cdfe685bed9f4b4dbf269a7077d58e6e.tar.bz2
rtmux-757eb060cdfe685bed9f4b4dbf269a7077d58e6e.zip
Merge branch 'obsd-master'
Diffstat (limited to 'window-copy.c')
-rw-r--r--window-copy.c4
1 files changed, 2 insertions, 2 deletions
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);