From: Stefano Zacchiroli Date: Thu, 10 Feb 2005 15:44:20 +0000 (+0000) Subject: bugfix: avoid executing tactic for the script twice X-Git-Tag: before_svn_merge~13 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=88685adce112ba14de5051e1d40f0b203dfc2922;p=helm.git bugfix: avoid executing tactic for the script twice --- diff --git a/helm/matita/matita.ml b/helm/matita/matita.ml index e6eff09fe..59ec55f3a 100644 --- a/helm/matita/matita.ml +++ b/helm/matita/matita.ml @@ -105,7 +105,7 @@ let console_callback s = in let ast = disambiguator#parserr#parseTactical (Stream.of_string s) in if needed_by_script ast then - script#advance ast + script#advance s else interpreter#evalAst ast @@ -138,8 +138,7 @@ let _ = let hole = CicAst.UserInput in let tac ast _ = let ast = A.Tactic ast in - ignore (interpreter#evalAst ast); - ignore (script#advance ast) + ignore (script#advance (TacticAstPp.pp_tactical ast)) in let tac_w_term ast _ = (* gui#console#clear (); *)