diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2013-06-22 23:05:03 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2013-07-04 09:26:18 +0200 |
commit | 8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c (patch) | |
tree | f472a39501759d583de7bce3cbef3db930416c47 /st.c | |
parent | 6e1c7c8afce3a0e6f896231a3155a27543d261e5 (diff) | |
download | st-8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c.tar.gz st-8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c.zip |
fix: do not need an extra variable for a single read
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -3375,7 +3375,6 @@ numlock(const Arg *dummy) { | |||
3375 | 3375 | ||
3376 | char* | 3376 | char* |
3377 | kmap(KeySym k, uint state) { | 3377 | kmap(KeySym k, uint state) { |
3378 | uint mask; | ||
3379 | Key *kp; | 3378 | Key *kp; |
3380 | int i; | 3379 | int i; |
3381 | 3380 | ||
@@ -3390,12 +3389,10 @@ kmap(KeySym k, uint state) { | |||
3390 | } | 3389 | } |
3391 | 3390 | ||
3392 | for(kp = key; kp < key + LEN(key); kp++) { | 3391 | for(kp = key; kp < key + LEN(key); kp++) { |
3393 | mask = kp->mask; | ||
3394 | |||
3395 | if(kp->k != k) | 3392 | if(kp->k != k) |
3396 | continue; | 3393 | continue; |
3397 | 3394 | ||
3398 | if(!match(mask, state)) | 3395 | if(!match(kp->mask, state)) |
3399 | continue; | 3396 | continue; |
3400 | 3397 | ||
3401 | if(kp->appkey > 0) { | 3398 | if(kp->appkey > 0) { |