]> matita.cs.unibo.it Git - helm.git/commitdiff
bugfix: avoid executing tactic for the script twice
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 10 Feb 2005 15:44:20 +0000 (15:44 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 10 Feb 2005 15:44:20 +0000 (15:44 +0000)
helm/matita/matita.ml

index e6eff09fec2bea1060f73012f6d207d6681542e2..59ec55f3a2714ce82c1ba67db6d4e1f7b211a876 100644 (file)
@@ -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 (); *)