summaryrefslogtreecommitdiffstats
path: root/cmd-show-buffer.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-show-buffer.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-show-buffer.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-show-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-show-buffer.c b/cmd-show-buffer.c
index b28d0dd..70cf20a 100644
--- a/cmd-show-buffer.c
+++ b/cmd-show-buffer.c
@@ -31,7 +31,7 @@ int cmd_show_buffer_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_show_buffer_entry = {
"show-buffer", "showb",
CMD_BUFFER_SESSION_USAGE,
- 0,
+ 0, 0,
cmd_buffer_init,
cmd_buffer_parse,
cmd_show_buffer_exec,