@@ -741,9 +741,6 @@ processTactic t ps
741 = case holes ps of
741 = case holes ps of
742 [] -> fail "Nothing to fill in."
742 [] -> fail "Nothing to fill in."
743 (h:_) -> do ps' <- execStateT (process t h) ps
743 (h:_) -> do ps' <- execStateT (process t h) ps
744− let pterm' = case solved ps' of
745− Just s -> updateSolved [s] (pterm ps')
747 let (ns', probs')
744 let (ns', probs')
748 = case solved ps' of
745 = case solved ps' of
749 Just s -> updateProblems (context ps')
746 Just s -> updateProblems (context ps')
@@ -753,7 +750,7 @@ processTactic t ps
753 _ -> ([], problems ps')
750 _ -> ([], problems ps')
754 -- rechecking problems may find more solutions, so
751 -- rechecking problems may find more solutions, so
755 -- apply them here
752 -- apply them here
756− let pterm'' = updateSolved ns' pterm'
753+ let pterm'' = updateSolved ns' (pterm ps')
757 return (ps' { pterm = pterm'',
754 return (ps' { pterm = pterm'',
758 solved = Nothing,
755 solved = Nothing,
759 problems = probs',
756 problems = probs',