st
simple terminal
git clone https://9o.is/git/st.git
commit e1f828f126e5232356cfdf04d0e4c6b52961fbe5 parent 59723002835df10b81ae51ac99340cdba3139a58 Author: Markus Teich <markus.teich@stusta.mhn.de> Date: Sat, 22 Jun 2013 23:05:03 +0200 fix: do not need an extra variable for a single read Diffstat:
| M | st.c | | | 5 | +---- |
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/st.c b/st.c @@ -3375,7 +3375,6 @@ numlock(const Arg *dummy) { char* kmap(KeySym k, uint state) { - uint mask; Key *kp; int i; @@ -3390,12 +3389,10 @@ kmap(KeySym k, uint state) { } for(kp = key; kp < key + LEN(key); kp++) { - mask = kp->mask; - if(kp->k != k) continue; - if(!match(mask, state)) + if(!match(kp->mask, state)) continue; if(kp->appkey > 0) {