diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-10-17 21:47:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-10-17 21:47:20 -0700 |
commit | 678fbc80a644c3902b6d9785acd53df1151955ef (patch) | |
tree | 8a669a5503b05d229dacfade280b53e553a748bb /match.c | |
parent | 43b4d36e37ca650cdf70568240ccc041b20306bd (diff) | |
download | txr-678fbc80a644c3902b6d9785acd53df1151955ef.tar.gz txr-678fbc80a644c3902b6d9785acd53df1151955ef.tar.bz2 txr-678fbc80a644c3902b6d9785acd53df1151955ef.zip |
* 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.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |