summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-12-14 00:31:55 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-12-14 00:31:55 +0000
commit2022217c9daeafa8716f908857f5b55629372f02 (patch)
tree0fe0eb9fb6e772b2630db05b1e228e9279b56dbb /usr.bin/tmux/cmd-run-shell.c
parenta3613e1df5562bf010ff3c6a1bc49fd8dd2f44c6 (diff)
Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
Diffstat (limited to 'usr.bin/tmux/cmd-run-shell.c')
-rw-r--r--usr.bin/tmux/cmd-run-shell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c
index 7b2119ceabc..e477ca43f7b 100644
--- a/usr.bin/tmux/cmd-run-shell.c
+++ b/usr.bin/tmux/cmd-run-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-run-shell.c,v 1.34 2015/12/13 21:53:57 nicm Exp $ */
+/* $OpenBSD: cmd-run-shell.c,v 1.35 2015/12/14 00:31:54 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -42,7 +42,9 @@ const struct cmd_entry cmd_run_shell_entry = {
.args = { "bt:", 1, 1 },
.usage = "[-b] " CMD_TARGET_PANE_USAGE " shell-command",
- .flags = CMD_PANE_T|CMD_CANFAIL,
+ .tflag = CMD_PANE_CANFAIL,
+
+ .flags = 0,
.exec = cmd_run_shell_exec
};