diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | match.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2014-10-17 Kaz Kylheku <kaz@kylheku.com> + * 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 <kaz@kylheku.com> + * match.c (dest_bind): Remove the restriction of not allowing @(expr ...) and @var on the left side of a bind. This is useful, and necessary for @(line @(lisp expr)) to work: @@ -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; } |