mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
This commit is contained in:
@ -35,7 +35,9 @@ const struct cmd_entry cmd_select_layout_entry = {
|
||||
.args = { "nopt:", 0, 1 },
|
||||
.usage = "[-nop] " CMD_TARGET_WINDOW_USAGE " [layout-name]",
|
||||
|
||||
.flags = CMD_WINDOW_T,
|
||||
.tflag = CMD_WINDOW,
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_select_layout_exec
|
||||
};
|
||||
|
||||
@ -46,7 +48,9 @@ const struct cmd_entry cmd_next_layout_entry = {
|
||||
.args = { "t:", 0, 0 },
|
||||
.usage = CMD_TARGET_WINDOW_USAGE,
|
||||
|
||||
.flags = CMD_WINDOW_T,
|
||||
.tflag = CMD_WINDOW,
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_select_layout_exec
|
||||
};
|
||||
|
||||
@ -57,7 +61,9 @@ const struct cmd_entry cmd_previous_layout_entry = {
|
||||
.args = { "t:", 0, 0 },
|
||||
.usage = CMD_TARGET_WINDOW_USAGE,
|
||||
|
||||
.flags = CMD_WINDOW_T,
|
||||
.tflag = CMD_WINDOW,
|
||||
|
||||
.flags = 0,
|
||||
.exec = cmd_select_layout_exec
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user