vt: there are actually many state transitions that are no-ops

In most states, most 8-bit values are no-ops. This is already handled;
action() recognizes ACTION_NONE as a no-op. Thus, all we need to do is
remove the assertion.
This commit is contained in:
Daniel Eklöf 2019-11-29 23:38:01 +01:00
parent 8b7158703d
commit 3026b8981a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

1
vt.c
View file

@ -1033,7 +1033,6 @@ vt_from_slave(struct terminal *term, const uint8_t *data, size_t len)
}
const struct state_transition *transition = &states[current_state][data[i]];
assert(transition->action != ACTION_NONE || transition->state != STATE_SAME);
if (transition->state != STATE_SAME) {
enum action exit_action = exit_actions[current_state];