summaryrefslogtreecommitdiff
path: root/chess-display.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-display.el')
-rw-r--r--chess-display.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/chess-display.el b/chess-display.el
index 271d4b6..59699b4 100644
--- a/chess-display.el
+++ b/chess-display.el
@@ -559,7 +559,8 @@ The key bindings available in this mode are:
(defsubst chess-display-active-p ()
"Return non-nil if the displayed chessboard reflects an active game.
Basically, it means we are playing, not editing or reviewing."
- (and (= chess-display-index
+ (and (chess-game-data chess-module-game 'active)
+ (= chess-display-index
(chess-game-index chess-module-game))
(not (chess-game-over-p chess-module-game))
(not chess-display-edit-mode)))