st

st fork
git clone git://git.rr3.xyz/st
Log | Files | Refs | README | LICENSE

commit b8d8860fff00c12a06b094d334696b2c12bd21b0
parent 24f867e3af082fc307e903fe132f6b1695a9d2cd
Author: robert <robertrussell.72001@gmail.com>
Date:   Fri, 11 Jun 2021 10:01:20 -0700

Use NoSymbol instead of 0 for bad keysym

Diffstat:
Mx.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x.c b/x.c @@ -1741,14 +1741,14 @@ kaction(XKeyEvent *e, int release) Status status; Rune c; - sym = 0; + sym = NoSymbol; state = confstate(e->state, release); if (xw.ime.xic) len = XmbLookupString(xw.ime.xic, e, buf, sizeof buf, &sym, &status); else len = XLookupString(e, buf, sizeof buf, &sym, NULL); - if (sym != 0 && handlesym(sym, state)) + if (sym != NoSymbol && handlesym(sym, state)) return; if (len == 0)