Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Remove unused fields in cursor_movement
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
02ef411
..
db21901
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-89,10
+89,6
@@
enum glyph_attribute {
};
enum cursor_movement {
};
enum cursor_movement {
- CURSOR_UP,
- CURSOR_DOWN,
- CURSOR_LEFT,
- CURSOR_RIGHT,
CURSOR_SAVE,
CURSOR_LOAD
};
CURSOR_SAVE,
CURSOR_LOAD
};
@@
-2715,16
+2711,13
@@
kmap(KeySym k, uint state) {
/* Check for mapped keys out of X11 function keys. */
for(i = 0; i < LEN(mappedkeys); i++) {
/* Check for mapped keys out of X11 function keys. */
for(i = 0; i < LEN(mappedkeys); i++) {
- if(mappedkeys[i] == k) {
- fprintf(stderr, "mapped function key.\n");
+ if(mappedkeys[i] == k)
break;
break;
- }
}
if(i == LEN(mappedkeys)) {
if((k & 0xFFFF) < 0xFF00)
return NULL;
}
}
if(i == LEN(mappedkeys)) {
if((k & 0xFFFF) < 0xFF00)
return NULL;
}
- fprintf(stderr, "Function key.\n");
for(kp = key; kp < key + LEN(key); kp++) {
mask = kp->mask;
for(kp = key; kp < key + LEN(key); kp++) {
mask = kp->mask;