diff options
author | nicm <nicm> | 2022-06-09 09:12:55 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-06-09 09:12:55 +0000 |
commit | ccc9dc3bb49ac258c856d8478346b4ce829b188e (patch) | |
tree | 308120cf8fd067226d532f57964b05b096c206f9 /window-copy.c | |
parent | c07d582e2476db075252998388305f11302a8b23 (diff) | |
download | rtmux-ccc9dc3bb49ac258c856d8478346b4ce829b188e.tar.gz rtmux-ccc9dc3bb49ac258c856d8478346b4ce829b188e.tar.bz2 rtmux-ccc9dc3bb49ac258c856d8478346b4ce829b188e.zip |
If an application gives the first parameter to OSC 52, validate and pass
on to outside terminal. GitHub issue 3192.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/window-copy.c b/window-copy.c index 03070556..09304218 100644 --- a/window-copy.c +++ b/window-copy.c @@ -4570,7 +4570,7 @@ window_copy_copy_buffer(struct window_mode_entry *wme, const char *prefix, if (options_get_number(global_options, "set-clipboard") != 0) { screen_write_start_pane(&ctx, wp, NULL); - screen_write_setselection(&ctx, buf, len); + screen_write_setselection(&ctx, "", buf, len); screen_write_stop(&ctx); notify_pane("pane-set-clipboard", wp); } @@ -4644,7 +4644,7 @@ window_copy_append_selection(struct window_mode_entry *wme) if (options_get_number(global_options, "set-clipboard") != 0) { screen_write_start_pane(&ctx, wp, NULL); - screen_write_setselection(&ctx, buf, len); + screen_write_setselection(&ctx, "", buf, len); screen_write_stop(&ctx); notify_pane("pane-set-clipboard", wp); } |