summaryrefslogtreecommitdiff
path: root/chess-fen.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-fen.el')
-rw-r--r--chess-fen.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/chess-fen.el b/chess-fen.el
index b428a5f..c372dc2 100644
--- a/chess-fen.el
+++ b/chess-fen.el
@@ -101,7 +101,7 @@ If FULL is non-nil, represent trailing spaces as well."
(setq str (concat str (char-to-string p))))))
(if (and full (> blank 0))
(setq str (concat str (int-to-string blank))))
- (setq blank 0 str (concat str "/")))
+ (if (< rank 7) (setq blank 0 str (concat str "/"))))
(setq str (if (chess-pos-side-to-move position)
(concat str " w ")
(concat str " b ")))