--- 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;