mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
If an application gives the first parameter to OSC 52, validate and pass
on to outside terminal. GitHub issue 3192.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user