fix: number-of-lines option in config file is ignored (#528)

Co-authored-by: andy.boot <bootandy@gmail.com>
This commit is contained in:
Vaso Putica
2025-10-06 21:22:35 +02:00
committed by GitHub
parent 7974e2eaf0
commit 96e04fe168
2 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ fn main() {
// If depth is set, then we set the default number_of_lines to be max
// instead of screen height
let number_of_lines = match options.number_of_lines {
let number_of_lines = match config.get_number_of_lines(&options) {
Some(val) => val,
None => {
if depth != usize::MAX {