[PATCH openEuler-1.0-LTS] vt: fix memory overlapping when deleting chars in the buffer