src/Pure/PIDE/command.ML
changeset 69883 f8293bf510a0
parent 69826 1bea05713dde
child 69886 0cb8753bdb50
--- a/src/Pure/PIDE/command.ML	Sat Mar 09 10:31:20 2019 +0100
+++ b/src/Pure/PIDE/command.ML	Sat Mar 09 13:19:13 2019 +0100
@@ -173,7 +173,10 @@
 fun init_eval_state opt_thy =
  {failed = false,
   command = Toplevel.empty,
-  state = (case opt_thy of NONE => Toplevel.toplevel | SOME thy => Toplevel.theory_toplevel thy)};
+  state =
+    (case opt_thy of
+      NONE => Toplevel.init ()
+    | SOME thy => Toplevel.theory_toplevel thy)};
 
 datatype eval =
   Eval of