tfix: do not need an extra variable for a single read - st - [fork] customized … | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c | |
parent 6e1c7c8afce3a0e6f896231a3155a27543d261e5 | |
Author: Markus Teich <[email protected]> | |
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 | |
t@@ -3375,7 +3375,6 @@ numlock(const Arg *dummy) { | |
char* | |
kmap(KeySym k, uint state) { | |
- uint mask; | |
Key *kp; | |
int i; | |
t@@ -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) { |