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-run-shell.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-run-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-run-shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c index f9eea21b9cd..016729f23d2 100644 --- a/usr.bin/tmux/cmd-run-shell.c +++ b/usr.bin/tmux/cmd-run-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-run-shell.c,v 1.63 2020/03/21 13:15:38 nicm Exp $ */ +/* $OpenBSD: cmd-run-shell.c,v 1.64 2020/04/10 07:44:26 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -82,7 +82,7 @@ cmd_run_shell_print(struct job *job, const char *msg) wme = TAILQ_FIRST(&wp->modes); if (wme == NULL || wme->mode != &window_view_mode) - window_pane_set_mode(wp, &window_view_mode, NULL, NULL); + window_pane_set_mode(wp, NULL, &window_view_mode, NULL, NULL); window_copy_add(wp, "%s", msg); } |