diff options
Diffstat (limited to 'parseutils.c')
-rw-r--r-- | parseutils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/parseutils.c b/parseutils.c index fe0a536..ca665e2 100644 --- a/parseutils.c +++ b/parseutils.c @@ -220,7 +220,7 @@ BoolVarCreate(Atom nameToken, unsigned set) } InterpDef * -InterpCreate(KeySym sym, ExprDef * match) +InterpCreate(const char *sym_str, ExprDef * match) { InterpDef *def; @@ -229,7 +229,10 @@ InterpCreate(KeySym sym, ExprDef * match) { def->common.stmtType = StmtInterpDef; def->common.next = NULL; - def->sym = sym; + if (LookupKeysym(sym_str, &def->sym) == 0) + def->ignore = True; + else + def->ignore = False; def->match = match; } else |