mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
8b7158703d
commit
3026b8981a
1 changed files with 0 additions and 1 deletions
1
vt.c
1
vt.c
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue