aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-29 22:38:01 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-29 22:38:01 +0000
commit3026b8981a511a2d913f930e0bb3e24682289a91 (patch)
tree5496ca92d8169aefb312e67025e8d95621c3c356
parentterm: reset: don't access rows directly (diff)
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.
-rw-r--r--vt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index bcce4052..82febc91 100644
--- a/vt.c
+++ b/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];