mirror of
https://github.com/tmux/tmux.git
synced 2024-12-24 10:08:48 +00:00
Disable aliases inside aliases for the moment.
This commit is contained in:
parent
768fb9080f
commit
5cdc1bdd32
@ -749,6 +749,8 @@ cmd_parse_expand_alias(struct cmd_parse_command *cmd,
|
||||
struct cmd_parse_command *last;
|
||||
char *alias, *name, *cause;
|
||||
|
||||
if (pi->flags & CMD_PARSE_NOALIAS)
|
||||
return (0);
|
||||
memset(pr, 0, sizeof *pr);
|
||||
|
||||
first = TAILQ_FIRST(&cmd->arguments);
|
||||
@ -788,7 +790,9 @@ cmd_parse_expand_alias(struct cmd_parse_command *cmd,
|
||||
}
|
||||
cmd_parse_log_commands(cmds, __func__);
|
||||
|
||||
pi->flags |= CMD_PARSE_NOALIAS;
|
||||
cmd_parse_build_commands(cmds, pi, pr);
|
||||
pi->flags &= ~CMD_PARSE_NOALIAS;
|
||||
return (1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user