diff options
| author | Enrico Tassi | 2019-03-04 13:54:13 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2019-03-04 13:57:15 +0100 |
| commit | 745669e29695b68b0c6aa9dbe27a835e43c87308 (patch) | |
| tree | da3af7b4dec77798b1a56e563c792217795a8a80 /stm | |
| parent | 913e377f3d24274215bd7d9d37c0189b8b5eb4a6 (diff) | |
[stm] unfocus when edition exits the proof (fix #9431)
Diffstat (limited to 'stm')
| -rw-r--r-- | stm/stm.ml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/stm/stm.ml b/stm/stm.ml index 8af1a2ebd2..ab388977a5 100644 --- a/stm/stm.ml +++ b/stm/stm.ml @@ -3205,10 +3205,9 @@ let edit_at ~doc id = let vcs = VCS.backup () in let on_cur_branch id = let rec aux cur = - if id = cur then true - else match VCS.visit cur with + match VCS.visit cur with | { step = `Fork _ } -> false - | { next } -> aux next in + | { next } -> if id = cur then true else aux next in aux (VCS.get_branch_pos (VCS.current_branch ())) in let rec is_pure_aux id = let view = VCS.visit id in |
