aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorppedrot2012-07-10 13:27:31 +0000
committerppedrot2012-07-10 13:27:31 +0000
commit899d186714a2bcb2d51902c918d0cb20d1815288 (patch)
tree04fb2ab1954f7d8eda5e9e0778d82176dd003e39 /ide
parent608bb24403e07e42855311d483e918c7acf3cafb (diff)
Adapting the IDE interface with the focussed display.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15579 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide')
-rw-r--r--ide/ideproof.ml7
1 files changed, 7 insertions, 0 deletions
diff --git a/ide/ideproof.ml b/ide/ideproof.ml
index 569e503c3b..12cb8c815a 100644
--- a/ide/ideproof.ml
+++ b/ide/ideproof.ml
@@ -130,6 +130,13 @@ let display mode (view:GText.view) goals hints evars =
| Some { Interface.fg_goals = []; Interface.bg_goals = bg } ->
(* No foreground proofs, but still unfocused ones *)
view#buffer#insert "This subproof is complete, but there are still unfocused goals:\n\n";
+ let rec flatten = function
+ | [] -> []
+ | (lg, rg) :: l ->
+ let inner = flatten l in
+ List.rev_append lg inner @ rg
+ in
+ let bg = flatten (List.rev bg) in
let iter goal =
let msg = Printf.sprintf "%s\n" goal.Interface.goal_ccl in
view#buffer#insert msg