[hackers] [st] Fixing the tab key, when no mask is wanted. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Wed, 14 Nov 2012 06:39:27 +0100 (CET)

changeset: 406:19ef42df8e7d
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Wed Nov 14 06:37:24 2012 +0100
files: st.c
description:
Fixing the tab key, when no mask is wanted.


diff -r bde502880fc0 -r 19ef42df8e7d st.c
--- a/st.c Tue Nov 13 20:13:39 2012 +0100
+++ b/st.c Wed Nov 14 06:37:24 2012 +0100
_AT_@ -2699,18 +2699,22 @@
 
                 if(kp->k != k)
                         continue;
- if((state & mask) != mask &&
+
+ if((state & mask) != mask ||
                                 (mask == XK_NO_MOD && state)) {
                         continue;
                 }
+
                 if((kp->appkey < 0 && IS_SET(MODE_APPKEYPAD)) ||
                                 (kp->appkey > 0 && !IS_SET(MODE_APPKEYPAD))) {
                         continue;
                 }
+
                 if((kp->appcursor < 0 && IS_SET(MODE_APPCURSOR)) ||
                                 (kp->appcursor > 0 && !IS_SET(MODE_APPCURSOR))) {
                         continue;
                 }
+
                 if((kp->crlf < 0 && IS_SET(MODE_CRLF)) ||
                                 (kp->crlf > 0 && !IS_SET(MODE_CRLF))) {
                         continue;
_AT_@ -2718,6 +2722,7 @@
 
                 return kp->s;
         }
+
         return NULL;
 }
 
Received on Wed Nov 14 2012 - 06:39:27 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 14 2012 - 06:48:06 CET