mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Now that copy mode copies the pane content rather than keeping a
reference to it, it isn't necessary that the pane in copy mode is the same as the one copying from. Add a -s flag to copy-mode to specify a different pane for the source content. This means it is possible to view two places in a pane's history at the same time in different panes, or copy from a pane's history into an editor or shell in the same pane. From Anindya Mukherjee.
This commit is contained in:
@ -116,7 +116,8 @@ cmd_find_window_exec(struct cmd *self, struct cmdq_item *item)
|
||||
args_set(new_args, 'Z', NULL);
|
||||
args_set(new_args, 'f', filter);
|
||||
|
||||
window_pane_set_mode(wp, &window_tree_mode, &item->target, new_args);
|
||||
window_pane_set_mode(wp, NULL, &window_tree_mode, &item->target,
|
||||
new_args);
|
||||
|
||||
args_free(new_args);
|
||||
free(filter);
|
||||
|
Reference in New Issue
Block a user