Bug issue in interpreter mode

In using interpreter mode, there is a bug where the original program remains without being deleted when making modifications to a long file. Specifically, the modified program is added below the original program, and the editing ends without the original program being deleted.