[PATCH v4.19-v5.4] vt: fix memory overlapping when deleting chars in the buffer