eschulte pushed a commit to branch go
in repository elpa.
commit 178e1d8a7fb449631bd472181f6ee663f2a2bb77
Author: Eric Schulte <[email protected]>
Date: Sun May 19 16:06:15 2013 -0600
don't throw error when backend passes
---
go-board.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/go-board.el b/go-board.el
index f3a83db..13f16ff 100644
--- a/go-board.el
+++ b/go-board.el
@@ -414,7 +414,9 @@
(apply-turn-to-board
(cons move (ignoring-unsupported (go-labels *back-end*)))))
(with-trackers tr (setf (go-move tr) move))
- (goto-char (point-of-pos (cddr move))))))
+ (if (equal move :pass)
+ (goto-char (point-min))
+ (goto-char (point-of-pos (cddr move)))))))
(defun go-board-mouse-move (ev)
(interactive "e")