Skip to content

Commit

Permalink
fix: fixed tail preloading if input file contains less lines than req…
Browse files Browse the repository at this point in the history
…uested (#146)
  • Loading branch information
pamburus authored Mar 3, 2024
1 parent 2c66f6c commit 3dd11e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categories = ["command-line-utilities"]
description = "Utility for viewing json-formatted log files."
keywords = ["cli", "human", "log"]
name = "hl"
version = "0.26.1-alpha.2"
version = "0.26.2"
edition = "2021"
build = "build.rs"

Expand Down
1 change: 1 addition & 0 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ impl InputReference {

prev_pos = pos;
}
file.seek(SeekFrom::Start(pos as u64))?;
Ok(())
}
}
Expand Down

0 comments on commit 3dd11e9

Please sign in to comment.