summaryrefslogtreecommitdiffstats
path: root/cmd-find-window.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-10 07:44:26 +0000
committernicm <nicm>2020-04-10 07:44:26 +0000
commitc0602f357d7b48ab830f93b446cb1830c5df7a0f (patch)
tree11b8275c72d23606de28e5104e5d78d0a51fcd0e /cmd-find-window.c
parenta1fc8f8b23bf6371877ff93e123b735d2c7d596d (diff)
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.
Diffstat (limited to 'cmd-find-window.c')
-rw-r--r--cmd-find-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-find-window.c b/cmd-find-window.c
index c29878b5..774c0bb9 100644
--- a/cmd-find-window.c
+++ b/cmd-find-window.c
@@ -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);