summaryrefslogtreecommitdiffstats
path: root/cmd-choose-window.c
authornicm <nicm>2009-07-14 06:43:32 (GMT)
committer nicm <nicm>2009-07-14 06:43:32 (GMT)
commit2a601483e5b5484a9a9af712dc9d7f7eed88a30f (patch) (side-by-side diff)
tree21d2624147477e15b5d150c0b5b60cf8f9deffaf /cmd-choose-window.c
parenta2b431b90be2f7d6e00a2617becfa0e6491f74ec (diff)
downloadtmux-old-2a601483e5b5484a9a9af712dc9d7f7eed88a30f.zip
tmux-old-2a601483e5b5484a9a9af712dc9d7f7eed88a30f.tar.gz
tmux-old-2a601483e5b5484a9a9af712dc9d7f7eed88a30f.tar.bz2
Having fixed flags for single-character getopt options is a bit hard to
maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
Diffstat (limited to 'cmd-choose-window.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-choose-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c
index c23e834..abc5aff 100644
--- a/cmd-choose-window.c
+++ b/cmd-choose-window.c
@@ -31,7 +31,7 @@ void cmd_choose_window_callback(void *, int);
const struct cmd_entry cmd_choose_window_entry = {
"choose-window", NULL,
CMD_TARGET_WINDOW_USAGE,
- 0,
+ 0, 0,
cmd_target_init,
cmd_target_parse,
cmd_choose_window_exec,