Actually, there might be a bug here. See comment below in `addPositionToEdit()`.