diff options
author | 2020-04-10 07:44:26 +0000 | |
---|---|---|
committer | 2020-04-10 07:44:26 +0000 | |
commit | cdfe74ade09b697913dc61e107ba3b14abd8106e (patch) | |
tree | 43a1bc8ae99155ba554f58e9ee873404f296c91d /usr.bin/tmux/cmd-find-window.c | |
parent | Place the 64bit key on the stack instead of malloc(9)in' it in pppx_if_find(). (diff) | |
download | wireguard-openbsd-cdfe74ade09b697913dc61e107ba3b14abd8106e.tar.xz wireguard-openbsd-cdfe74ade09b697913dc61e107ba3b14abd8106e.zip |
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 'usr.bin/tmux/cmd-find-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-find-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-find-window.c b/usr.bin/tmux/cmd-find-window.c index 68e0db91132..ae89436f2fc 100644 --- a/usr.bin/tmux/cmd-find-window.c +++ b/usr.bin/tmux/cmd-find-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-find-window.c,v 1.46 2019/06/20 20:31:04 nicm Exp $ */ +/* $OpenBSD: cmd-find-window.c,v 1.47 2020/04/10 07:44:26 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |