[PATCH 5.15 162/167] vt: fix memory overlapping when deleting chars in the buffer