aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2013-06-22 23:05:03 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2013-07-04 09:26:18 +0200
commit8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c (patch)
treef472a39501759d583de7bce3cbef3db930416c47 /st.c
parent6e1c7c8afce3a0e6f896231a3155a27543d261e5 (diff)
downloadst-8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c.tar.gz
st-8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c.tar.bz2
fix: do not need an extra variable for a single read
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/st.c b/st.c
index 66aca2d..16803ec 100644
--- 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) {