diff options
author | nicm <nicm> | 2020-04-10 07:44:26 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-10 07:44:26 +0000 |
commit | c0602f357d7b48ab830f93b446cb1830c5df7a0f (patch) | |
tree | 11b8275c72d23606de28e5104e5d78d0a51fcd0e /cmd-run-shell.c | |
parent | a1fc8f8b23bf6371877ff93e123b735d2c7d596d (diff) | |
download | rtmux-c0602f357d7b48ab830f93b446cb1830c5df7a0f.tar.gz rtmux-c0602f357d7b48ab830f93b446cb1830c5df7a0f.tar.bz2 rtmux-c0602f357d7b48ab830f93b446cb1830c5df7a0f.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 'cmd-run-shell.c')
-rw-r--r-- | cmd-run-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c index a57beb83..7ce6d55a 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -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); } |