mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 06:56:58 +00:00
Support setting the xterm clipboard when copying from copy mode using
the xterm escape sequence for the purpose (if xterm is configured to allow it). Written by and much discussed Ailin Nemui, guidance on xterm/termcap/terminfo from Thomas Dickey.
This commit is contained in:
@ -1345,6 +1345,9 @@ window_copy_copy_selection(struct window_pane *wp)
|
||||
}
|
||||
off--; /* remove final \n */
|
||||
|
||||
if (options_get_number(&global_options, "set-clipboard"))
|
||||
screen_write_setselection(&wp->ictx.ctx, buf, off);
|
||||
|
||||
/* Add the buffer to the stack. */
|
||||
limit = options_get_number(&global_options, "buffer-limit");
|
||||
paste_add(&global_buffers, buf, off, limit);
|
||||
|
Reference in New Issue
Block a user