X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=367ab51df5236bef61d6a019e025c714665c369b;hb=6312f76ca47f94119a7740dd36f7dd6ce037e907;hp=02ef411e25d4a761543ee9d6e5cb9e84195d9260;hpb=2b6521f5d23da404a597d675d12d4c0cf89657de;p=st.git diff --git a/st.c b/st.c index 02ef411..367ab51 100644 --- a/st.c +++ b/st.c @@ -89,10 +89,6 @@ enum glyph_attribute { }; enum cursor_movement { - CURSOR_UP, - CURSOR_DOWN, - CURSOR_LEFT, - CURSOR_RIGHT, CURSOR_SAVE, CURSOR_LOAD }; @@ -2086,7 +2082,7 @@ tputc(char *c, int len) { } } /* - * All characters which forms part of a sequence are not + * All characters which form part of a sequence are not * printed */ return; @@ -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++) { - if(mappedkeys[i] == k) { - fprintf(stderr, "mapped function key.\n"); + if(mappedkeys[i] == k) break; - } } 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;