version 1.122, 2017/05/28 23:23:40 |
version 1.123, 2017/06/03 17:43:01 |
|
|
char *end; |
char *end; |
size_t len; |
size_t len; |
u_char *out; |
u_char *out; |
int outlen; |
int outlen, state; |
struct screen_write_ctx ctx; |
struct screen_write_ctx ctx; |
|
|
|
state = options_get_number(global_options, "set-clipboard"); |
|
if (state != 2) |
|
return; |
|
|
if ((end = strchr(p, ';')) == NULL) |
if ((end = strchr(p, ';')) == NULL) |
return; |
return; |
end++; |
end++; |
|
|
return; |
return; |
} |
} |
|
|
if (options_get_number(global_options, "set-clipboard")) { |
screen_write_start(&ctx, wp, NULL); |
screen_write_start(&ctx, wp, NULL); |
screen_write_setselection(&ctx, out, outlen); |
screen_write_setselection(&ctx, out, outlen); |
screen_write_stop(&ctx); |
screen_write_stop(&ctx); |
|
} |
|
paste_add(out, outlen); |
paste_add(out, outlen); |
} |
} |
|
|