[hackers] [st] Be careful about mar77i's patches. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Mon, 10 Dec 2012 23:05:13 +0100

commit 2696f8187509eb94644bbac5b05348e37c391bea
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Mon Dec 10 23:02:58 2012 +0100

    Be careful about mar77i's patches.

diff --git a/config.def.h b/config.def.h
index b10c730..684adf7 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -138,8 +138,8 @@ static Key key[] = {
         { XK_KP_Delete, ControlMask, "[3;5~", +1, 0, 0},
         { XK_KP_Delete, ShiftMask, "", +1, 0, 0},
         { XK_KP_Delete, ShiftMask, "[3;2~", -1, 0, 0},
- { XK_KP_Delete, XK_ANY_MOD, "[3~", -1, 0, 0},
- { XK_KP_Delete, XK_ANY_MOD, "", +1, 0, 0},
+ { XK_KP_Delete, XK_ANY_MOD, "", -1, 0, 0},
+ { XK_KP_Delete, XK_ANY_MOD, "[3~", +1, 0, 0},
         { XK_KP_Multiply, XK_ANY_MOD, "Oj", +2, 0, 0},
         { XK_KP_Add, XK_ANY_MOD, "Ok", +2, 0, 0},
         { XK_KP_Enter, XK_ANY_MOD, "OM", +2, 0, 0},
_AT_@ -194,8 +194,8 @@ static Key key[] = {
         { XK_Delete, ControlMask, "[3;5~", +1, 0, 0},
         { XK_Delete, ShiftMask, "", +1, 0, 0},
         { XK_Delete, ShiftMask, "[3;2~", -1, 0, 0},
- { XK_Delete, XK_ANY_MOD, "[3~", -1, 0, 0},
- { XK_Delete, XK_ANY_MOD, "", +1, 0, 0},
+ { XK_Delete, XK_ANY_MOD, "", -1, 0, 0},
+ { XK_Delete, XK_ANY_MOD, "[3~", +1, 0, 0},
         { XK_Home, ShiftMask, "", 0, 0, 0},
         { XK_Home, XK_ANY_MOD, "", 0, -1, 0},
         { XK_Home, XK_ANY_MOD, "[1~", 0, +1, 0},
diff --git a/st.c b/st.c
index fc64a77..42061b9 100644
--- a/st.c
+++ b/st.c
_AT_@ -2742,12 +2742,13 @@ kmap(KeySym k, uint state) {
                                 continue;
                         if(term.numlock && kp->appkey == 2)
                                 continue;
- } else if (kp->appkey < 0 && IS_SET(MODE_APPKEYPAD)) {
+ } else if(kp->appkey < 0 && IS_SET(MODE_APPKEYPAD)) {
                         continue;
                 }
 
                 if((kp->appcursor < 0 && IS_SET(MODE_APPCURSOR)) ||
- (kp->appcursor > 0 && !IS_SET(MODE_APPCURSOR))) {
+ (kp->appcursor > 0
+ && !IS_SET(MODE_APPCURSOR))) {
                         continue;
                 }
 
Received on Mon Dec 10 2012 - 23:05:13 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 10 2012 - 23:12:09 CET