aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorppedrot2012-02-02 17:15:55 +0000
committerppedrot2012-02-02 17:15:55 +0000
commiteaca4fb2918eb1a1dd74409546d947f9353ed078 (patch)
treeb0053c0c579dd316244c266beb813a869b433edf /ide
parent9ef0dfaf7c2aa0030b194ac040b071b4ce275fee (diff)
More information returned by coqtop about its internal state. Hopefully we'll manage to get rid of the own stack of coqide.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14965 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide')
-rw-r--r--ide/coqide.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ide/coqide.ml b/ide/coqide.ml
index 009a198920..2f53fa8ff3 100644
--- a/ide/coqide.ml
+++ b/ide/coqide.ml
@@ -2192,8 +2192,8 @@ let main files =
"Oops, problem while fetching coq status."
| Interface.Good status ->
let path = match status.Interface.status_path with
- | None -> ""
- | Some p -> " in " ^ p
+ | [] | _ :: [] -> "" (* Drop the topmost level, usually "Top" *)
+ | _ :: l -> " in " ^ String.concat "." l
in
let name = match status.Interface.status_proofname with
| None -> ""