Please try this instead:

Index: cmd.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/cmd.c,v
retrieving revision 1.128
diff -u -p -r1.128 cmd.c
--- cmd.c       2 Nov 2016 13:35:36 -0000       1.128
+++ cmd.c       27 Dec 2016 15:27:51 -0000
@@ -410,7 +410,7 @@ cmd_prepare_state_flag(char c, const cha
                if (target != NULL && target[strcspn(target, ":.")] != '\0')
                        flag = CMD_PANE;
                else
-                       flag = CMD_SESSION;
+                       flag = CMD_SESSION_PREFERUNATTACHED;
        }
 
        targetflags = 0;
@@ -418,6 +418,7 @@ cmd_prepare_state_flag(char c, const cha
        case CMD_SESSION:
        case CMD_SESSION_CANFAIL:
        case CMD_SESSION_PREFERUNATTACHED:
+       case CMD_SESSION_WITHPANE:
                if (flag == CMD_SESSION_CANFAIL)
                        targetflags |= CMD_FIND_QUIET;
                if (flag == CMD_SESSION_PREFERUNATTACHED)
Index: tmux.h
===================================================================
RCS file: /cvs/src/usr.bin/tmux/tmux.h,v
retrieving revision 1.681
diff -u -p -r1.681 tmux.h
--- tmux.h      24 Nov 2016 18:45:45 -0000      1.681
+++ tmux.h      27 Dec 2016 15:27:51 -0000
@@ -1305,7 +1305,7 @@ enum cmd_entry_flag {
        CMD_SESSION,
        CMD_SESSION_CANFAIL,
        CMD_SESSION_PREFERUNATTACHED,
-       CMD_SESSION_WITHPANE,
+       CMD_SESSION_WITHPANE, /* implies PREFERUNATTACHED */
 
        CMD_WINDOW,
        CMD_WINDOW_CANFAIL,



On Wed, Dec 21, 2016 at 11:31:18PM +0100, Thomas Sattler wrote:
> Am 21.12.2016 um 18:44 schrieb Nicholas Marriott:
> > Are you sure you restarted tmux entirely after rebuilding?
> 
> I was quite sure, but this time I double checked:
> 
> Yes, there was no tmux running when starting the
> given commands. And still all terminals attach
> to the second session only. As it was before.
> 
> Did you try to reproduce the issue? Do you
> observe a different behavior?
> 
> Thomas
> 

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to