add infinit undo and remaining edit line