summaryrefslogtreecommitdiff
path: root/chess-scid.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-scid.el')
-rw-r--r--chess-scid.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/chess-scid.el b/chess-scid.el
index 37e5c42..b2e1db4 100644
--- a/chess-scid.el
+++ b/chess-scid.el
@@ -67,6 +67,9 @@
(string-to-number (chess-scid-get-result "sc_base numGames")))
((eq event 'read)
+ ;; clear the buffer, since we don't need old data here any more, and it
+ ;; can accumulate without bound during running of the validation tests
+ (erase-buffer)
(process-send-string chess-scid-process
(format "sc_game load %d\n" (car args)))
(accept-process-output chess-scid-process)