avoid '(0 subgoals)';
authorwenzelm
Thu, 22 Jul 1999 20:53:54 +0200
changeset 7063 06ae685ca5a3
parent 7062 e992884b256d
child 7064 b053e0ab9f60
avoid '(0 subgoals)';
src/Pure/goals.ML
--- a/src/Pure/goals.ML	Thu Jul 22 20:53:26 1999 +0200
+++ b/src/Pure/goals.ML	Thu Jul 22 20:53:54 1999 +0200
@@ -316,9 +316,10 @@
 fun print_current_goals_default n max th =
   let val ref (begin_state, end_state, begin_goal) = current_goals_markers;
       val ngoals = nprems_of th in
-    writeln (begin_state ^ "Level " ^ string_of_int n ^ 
-	" (" ^ string_of_int ngoals ^ " subgoal" ^ 
-	   (if ngoals <> 1 then "s" else "") ^ ")");
+    writeln (begin_state ^ "Level " ^ string_of_int n ^
+      (if ngoals > 0 then " (" ^ string_of_int ngoals ^ " subgoal" ^
+        (if ngoals <> 1 then "s" else "") ^ ")"
+      else ""));
     Locale.print_goals_marker begin_goal max th;
     if end_state = "" then () else writeln end_state
   end;