Skip to content

Commit

Permalink
vcf/async/io/reader/header: Reset EOL flag if read does not consume f…
Browse files Browse the repository at this point in the history
…ull line
  • Loading branch information
zaeleus committed Dec 19, 2024
1 parent 5f6d1be commit a0bbb54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions noodles-vcf/src/async/io/reader/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ where
let amt = src.len().min(buf.remaining());
buf.put_slice(&src[..amt]);

if amt < src.len() {
self.is_eol = false;
}

self.consume(amt);

Poll::Ready(Ok(()))
Expand Down

0 comments on commit a0bbb54

Please sign in to comment.