Add handling of the move to previous and next diff