summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Lang <mlang@delysid.org>2004-02-12 10:51:22 +0000
committerMario Lang <mlang@delysid.org>2004-02-12 10:51:22 +0000
commit1391864cdf62ff8d0f9f463303dae4d050572a89 (patch)
tree7fe6f4e10382860e596c6f2bd3536d0ed619acc9
parentd3bd00b62e3f0f33ddc6d455139bf1ad8ce67b7d (diff)
(chess-engine-filter): Only process output if it is newline
terminated (this fixed phalanx).
-rw-r--r--chess-engine.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/chess-engine.el b/chess-engine.el
index 1398bb4..5304cc4 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -421,7 +421,8 @@ event handler can take care of the data."
(insert string)
(set-marker chess-engine-current-marker (point)))
(if moving (goto-char chess-engine-current-marker))))
- (unless chess-engine-working
+ (when (and (not chess-engine-working)
+ (memq (char-before chess-engine-current-marker) '(?\n ?\r)))
(setq chess-engine-working t)
(save-excursion
(if chess-engine-last-pos