On 18 June 2014 16:09, George Brown <321.geo...@gmail.com> wrote:
> Dear all,
>
> I was attempting this today and realised the "tmux select-pane" only
> switches to panes in the active window. It appear this was raised in the
> following ticket but I have not been able to find the actual discussion or
> mentioned patch.
>
> http://sourceforge.net/p/tmux/tickets/98/
>
> I am running 1.9a and would love to test the patch if someone could point me
> to it.

This was what I had originally:

diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index 1a1072d..f989182 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -67,6 +67,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
        struct args             *args = self->args;
        struct winlink          *wl;
        struct window_pane      *wp;
+       struct session          *s;

        if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {
                wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);
@@ -86,7 +87,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
                return (CMD_RETURN_NORMAL);
        }

-       if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), NULL, &wp)) == NULL)
+       if ((wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp)) == NULL)
                return (CMD_RETURN_ERROR);

        server_unzoom_window(wp->window);
@@ -111,6 +112,8 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
        window_set_active_pane(wl->window, wp);
        server_status_window(wl->window);
        server_redraw_window_borders(wl->window);
+       if (session_select(s, wl->idx) == 0)
+               server_redraw_session(s);

        return (CMD_RETURN_NORMAL);
 }


It should still work.

-- Thomas Adam

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to