mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
95bbab8fba
commit
d37b2a7f7b
1 changed files with 2 additions and 3 deletions
5
vt.c
5
vt.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue