summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-10 00:31:47 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-10 00:31:47 +0000
commit92dd9a7cb23d4ab14102e02a9f45f096fe8fff13 (patch)
treee90d654ba627ed6c2f9da694520193cf8cc6dc32 /chess-engine.el
parent3b72d987a9dfb01d9226b88d86dedf10fea67fed (diff)
handle display cloning
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/chess-engine.el b/chess-engine.el
index 77cca30..b4249fe 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -192,7 +192,8 @@
(chess-with-current-buffer engine
(if chess-engine-game
(chess-game-remove-hook chess-engine-game
- 'chess-engine-event-handler))))
+ 'chess-engine-event-handler
+ (or engine (current-buffer))))))
(defun chess-engine-game (engine)
(chess-with-current-buffer engine