[PATCH 5.18 222/231] vt: fix memory overlapping when deleting chars in the buffer