summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-14 00:31:54 +0000
committernicm <nicm>2015-12-14 00:31:54 +0000
commita3129fd4e820d7ccb3797fed491e7c021b63c568 (patch)
tree2670410ce357adf7dee1ace4f33d88f034b2ec12 /cmd-send-keys.c
parentecfeee2e8255a77f82a07124c93c8dbc7683c421 (diff)
Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index aa78abca..377453b0 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -36,7 +36,9 @@ const struct cmd_entry cmd_send_keys_entry = {
.args = { "lRMt:", 0, -1 },
.usage = "[-lRM] " CMD_TARGET_PANE_USAGE " key ...",
- .flags = CMD_PANE_T,
+ .tflag = CMD_PANE,
+
+ .flags = 0,
.exec = cmd_send_keys_exec
};
@@ -47,7 +49,9 @@ const struct cmd_entry cmd_send_prefix_entry = {
.args = { "2t:", 0, 0 },
.usage = "[-2] " CMD_TARGET_PANE_USAGE,
- .flags = CMD_PANE_T,
+ .tflag = CMD_PANE,
+
+ .flags = 0,
.exec = cmd_send_keys_exec
};