aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coq/coq.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/coq/coq.el b/coq/coq.el
index e45076c9..236af8f7 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -2499,7 +2499,7 @@ First goal is displayed on the bottom of its window, maximizing the
number of hypothesis displayed, without hiding the goal"
(interactive)
(let ((pg-frame (car (coq-find-threeb-frames)))) ; selecting the good frame
- (with-selected-frame (or pg-frame (window-frame))
+ (with-selected-frame (or pg-frame (window-frame (selected-window)))
;; prefer current frame
(let ((goal-win (or (get-buffer-window proof-goals-buffer) (get-buffer-window proof-goals-buffer t))))
(if goal-win