summaryrefslogtreecommitdiff
path: root/libtk/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtk/parse.c')
-rw-r--r--libtk/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtk/parse.c b/libtk/parse.c
index 57a1a651..9291e899 100644
--- a/libtk/parse.c
+++ b/libtk/parse.c
@@ -391,7 +391,7 @@ tkgencget(TkOptab *ft, char *arg, char **val, TkTop *t)
}
c = out;
for (s = o->aux; s->val != nil; s++) {
- if (con & s->con)
+ if (s->con == (s->con&-s->con) && (con & s->con) != 0)
c = seprint(c, out+Tkmaxitem, " %s", s->val); /* should this be quoted? */
}
free(buf);