switch adjustments to keep search state to preserve on_X_step values
[scpubgit/DX.git] / lib / DX / Step / Backtrack.pm
index ca565bc..f145351 100644 (file)
@@ -8,12 +8,7 @@ sub apply_to {
   my ($self, $ss) = @_;
   my ($first_alt, @rest_alt) = @{$ss->adjustments_made};
   return $ss->but(next_step => $ss->on_exhaustion_step) unless $first_alt;
-  return $ss->but(
-    current_hypothesis => $first_alt->[1],
-    adjustments_made => \@rest_alt,
-    next_step => $first_alt->[0]->alternative_step,
-    is_solution_state => 0,
-  );
+  return $first_alt->[1]->but(next_step => $first_alt->[0]->alternative_step);
 }
 
 1;