fix data index for #59
cargo devel CI / cargo CI (push) Successful in 2m7s Details

This commit is contained in:
Christoph J. Scherr 2024-01-17 19:37:00 +01:00
parent f4a7aeaf87
commit 15b1776def
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 1 additions and 2 deletions

View File

@ -139,8 +139,7 @@ pub fn dump(data: &mut dyn DataSource, mut config: HeduConfig) -> Result<()> {
);
let start_line = config.data_idx;
while config.buf[0] == config.buf[1] && config.len == BYTES_PER_LINE {
rd_data(data, &mut config)?;
config.data_idx += BYTES_PER_LINE; // FIXME: incorrect logic #59
rd_data(data, &mut config)?; // FIXME: incorrect logic #59
}
config.display_buf += &format!(
"^^^^^^^^ {LINE_SEP_VERT} (repeats {} lines)",