Skip to content

Commit

Permalink
build(deps): bump nls_term_grid version to "0.2.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
bydlw98 committed Apr 6, 2024
1 parent 815fdcc commit 2406c8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 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 @@ -35,7 +35,7 @@ ignore = "0.4.22"
lexopt = "0.3.0"
libc = "0.2.153"
log = "0.4.21"
nls_term_grid = "0.1.0"
nls_term_grid = "0.2.0"
once_cell = "1.19.0"
terminal_size = "0.3.0"
unicode-width = "0.1.11"
Expand Down
4 changes: 2 additions & 2 deletions src/output/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn single_column_format(entrybuf_vec: &[EntryBuf], config: &Config) {
cells_vec.push(entrybuf.file_name_cell(config));
}

let grid = Grid::new(1, Direction::LeftToRight, &cells_vec);
let grid = Grid::new(" ", Direction::LeftToRight, &cells_vec);
print!("{}", grid.fit_into_columns(num_columns));
}
}
Expand All @@ -53,7 +53,7 @@ fn multi_column_format(direction: Direction, entrybuf_vec: &[EntryBuf], config:
}

let display_width = terminal_width().unwrap_or(80);
let grid = Grid::new(2, direction, &cells_vec);
let grid = Grid::new(" ", direction, &cells_vec);

match grid.fit_into_width(display_width) {
Some(display) => print!("{}", display),
Expand Down
2 changes: 1 addition & 1 deletion src/output/long.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ pub fn long_format(entrybuf_vec: &[EntryBuf], config: &Config) {
cells_vec.push(entrybuf.file_name_cell(config));
}

let grid = Grid::new(1, Direction::LeftToRight, &cells_vec);
let grid = Grid::new(" ", Direction::LeftToRight, &cells_vec);
print!("{}", grid.fit_into_columns(num_columns));
}

0 comments on commit 2406c8b

Please sign in to comment.