From c0602f357d7b48ab830f93b446cb1830c5df7a0f Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 10 Apr 2020 07:44:26 +0000 Subject: 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. --- cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cfg.c') diff --git a/cfg.c b/cfg.c index 92c87225..6740bce4 100644 --- a/cfg.c +++ b/cfg.c @@ -284,7 +284,7 @@ cfg_show_causes(struct session *s) 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); for (i = 0; i < cfg_ncauses; i++) { window_copy_add(wp, "%s", cfg_causes[i]); free(cfg_causes[i]); -- cgit v1.2.3