=== modified file 'termkey.c' --- termkey.c 2008-11-03 14:45:59 +0000 +++ termkey.c 2008-11-02 17:54:24 +0000 @@ -372,23 +372,21 @@ // Try another key there tk->buffstart++; - tk->buffcount--; // Run the full driver termkey_result metakey_result = (*tk->driver.getkey)(tk, key, force); - tk->buffstart--; - tk->buffcount++; - switch(metakey_result) { case TERMKEY_RES_KEY: key->modifiers |= TERMKEY_KEYMOD_ALT; + tk->buffstart--; (*tk->method.eat_bytes)(tk, 1); break; case TERMKEY_RES_NONE: case TERMKEY_RES_EOF: case TERMKEY_RES_AGAIN: + tk->buffstart--; break; }