~petersanchez/st

8b602a37a65a3c001bd9334d8b1cfc17fc5dd45c — Markus Teich 10 years ago 6e1c7c8
fix: do not need an extra variable for a single read
1 files changed, 1 insertions(+), 4 deletions(-)

M st.c
M st.c => st.c +1 -4
@@ 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) {