Update term->vt.state for each iteration of vt_from_slave() loop

Otherwise it may be stale when read by the anywhere() function.
This commit is contained in:
Craig Barnes 2021-05-15 19:20:36 +01:00
parent 95bbab8fba
commit d37b2a7f7b

5
vt.c
View file

@ -1159,8 +1159,7 @@ vt_from_slave(struct terminal *term, const uint8_t *data, size_t len)
case STATE_UTF8_42: current_state = state_utf8_42_switch(term, *p); break;
case STATE_UTF8_43: current_state = state_utf8_43_switch(term, *p); break;
}
term->vt.state = current_state;
}
term->vt.state = current_state;
}