mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Fix the prefer unattached session behaviour of
attach-session/switch-client, reported by Thomas Sattle.
This commit is contained in:
parent
e36f932f62
commit
70ba3c147f
3
cmd.c
3
cmd.c
@ -410,7 +410,7 @@ cmd_prepare_state_flag(char c, const char *target, enum cmd_entry_flag flag,
|
||||
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 char *target, enum cmd_entry_flag flag,
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user