From 678fbc80a644c3902b6d9785acd53df1151955ef Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 17 Oct 2014 21:47:20 -0700 Subject: * match.c (v_eof): Bugfix: we are at EOF not only when the remaining data is nil but when it is (nil). This happens for interactive streams. --- ChangeLog | 6 ++++++ match.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6453947e..01604d76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-10-17 Kaz Kylheku + + * match.c (v_eof): Bugfix: we are at EOF not only when + the remaining data is nil but when it is (nil). This + happens for interactive streams. + 2014-10-17 Kaz Kylheku * match.c (dest_bind): Remove the restriction of not allowing diff --git a/match.c b/match.c index 9e699646..fdb37fdd 100644 --- a/match.c +++ b/match.c @@ -3540,7 +3540,7 @@ static val v_filter(match_files_ctx *c) static val v_eof(match_files_ctx *c) { - if (c->data) { + if (c->data && car(c->data)) { debuglf(c->spec, lit("eof failed to match at ~a"), c->data_lineno, nao); return nil; } -- cgit v1.2.3