Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Move CRLF input processing into ttywrite
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
49a22e4
..
76fb910
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-38,10
+38,9
@@
typedef struct {
KeySym k;
uint mask;
char *s;
KeySym k;
uint mask;
char *s;
- /* three
valued logic variables: 0 indifferent, 1 on, -1 off */
+ /* three
-
valued logic variables: 0 indifferent, 1 on, -1 off */
signed char appkey; /* application keypad */
signed char appcursor; /* application cursor */
signed char appkey; /* application keypad */
signed char appcursor; /* application cursor */
- signed char crlf; /* crlf mode */
} Key;
/* X modifiers */
} Key;
/* X modifiers */
@@
-1680,9
+1679,6
@@
kmap(KeySym k, uint state)
if (IS_SET(MODE_APPCURSOR) ? kp->appcursor < 0 : kp->appcursor > 0)
continue;
if (IS_SET(MODE_APPCURSOR) ? kp->appcursor < 0 : kp->appcursor > 0)
continue;
- if (IS_SET(MODE_CRLF) ? kp->crlf < 0 : kp->crlf > 0)
- continue;
-
return kp->s;
}
return kp->s;
}