From 3026b8981a511a2d913f930e0bb3e24682289a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 29 Nov 2019 23:38:01 +0100 Subject: [PATCH] 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. --- vt.c | 1 - 1 file changed, 1 deletion(-) 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];