mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 04:28:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
d3328a3b1e
3
cmd.c
3
cmd.c
@ -409,7 +409,7 @@ cmd_prepare_state_flag(char c, const char *target, enum cmd_entry_flag flag,
|
|||||||
if (target != NULL && target[strcspn(target, ":.")] != '\0')
|
if (target != NULL && target[strcspn(target, ":.")] != '\0')
|
||||||
flag = CMD_PANE;
|
flag = CMD_PANE;
|
||||||
else
|
else
|
||||||
flag = CMD_SESSION;
|
flag = CMD_SESSION_PREFERUNATTACHED;
|
||||||
}
|
}
|
||||||
|
|
||||||
targetflags = 0;
|
targetflags = 0;
|
||||||
@ -417,6 +417,7 @@ cmd_prepare_state_flag(char c, const char *target, enum cmd_entry_flag flag,
|
|||||||
case CMD_SESSION:
|
case CMD_SESSION:
|
||||||
case CMD_SESSION_CANFAIL:
|
case CMD_SESSION_CANFAIL:
|
||||||
case CMD_SESSION_PREFERUNATTACHED:
|
case CMD_SESSION_PREFERUNATTACHED:
|
||||||
|
case CMD_SESSION_WITHPANE:
|
||||||
if (flag == CMD_SESSION_CANFAIL)
|
if (flag == CMD_SESSION_CANFAIL)
|
||||||
targetflags |= CMD_FIND_QUIET;
|
targetflags |= CMD_FIND_QUIET;
|
||||||
if (flag == CMD_SESSION_PREFERUNATTACHED)
|
if (flag == CMD_SESSION_PREFERUNATTACHED)
|
||||||
|
2
tmux.h
2
tmux.h
@ -1307,7 +1307,7 @@ enum cmd_entry_flag {
|
|||||||
CMD_SESSION,
|
CMD_SESSION,
|
||||||
CMD_SESSION_CANFAIL,
|
CMD_SESSION_CANFAIL,
|
||||||
CMD_SESSION_PREFERUNATTACHED,
|
CMD_SESSION_PREFERUNATTACHED,
|
||||||
CMD_SESSION_WITHPANE,
|
CMD_SESSION_WITHPANE, /* implies PREFERUNATTACHED */
|
||||||
|
|
||||||
CMD_WINDOW,
|
CMD_WINDOW,
|
||||||
CMD_WINDOW_CANFAIL,
|
CMD_WINDOW_CANFAIL,
|
||||||
|
Loading…
Reference in New Issue
Block a user