@@ -578,7 +578,7 @@ process h fn (MakeWith updatefile l n)
578578process h fn (DoProofSearch updatefile l n)
579579 = do src <- runIO $ readFile fn
580580 let (before, tyline : later) = splitAt (l-1) (lines src)
581− let body = PProof [Try (TSeq Intros ProofSearch) ProofSearch]
581+ let body = PProof [Try (TSeq Intros (ProofSearch n)) (ProofSearch n)]
582582 ctxt <- getContext
583583 mn <- case lookupNames n ctxt of
584584 [x] -> return x
@@ -593,6 +593,7 @@ process h fn (DoProofSearch updatefile l n)
593593 elabDecls toplevel [PClauses fc [] mn [def]]
594594 (tm, ty) <- elabVal toplevel False (PRef fc mn)
595595 ctxt <- getContext
596+ i <- getIState
596597 let newmv = show (dropCtxt envlen (delab i (normaliseAll ctxt [] tm)))
597598 if updatefile then
598599 do let fb = fn ++ "~"