From 1391864cdf62ff8d0f9f463303dae4d050572a89 Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Thu, 12 Feb 2004 10:51:22 +0000 Subject: (chess-engine-filter): Only process output if it is newline terminated (this fixed phalanx). --- chess-engine.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chess-engine.el') 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 -- cgit v1.2.3