mirror of
https://github.com/FiloSottile/age.git
synced 2026-08-29 12:17:19 +00:00
trackReader.Read panicked if called again after a read returned io.EOF, which can happen with readers that do not return EOF consistently, such as a terminal after Ctrl-D. Latch the EOF instead, per the io.Reader contract, so count stays consistent with the file size. Fixes #719 Co-authored-by: Filippo Valsorda <hi@filippo.io>