Skip to content

Commit

Permalink
Update term_grid to 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Eijebong committed Dec 10, 2021
1 parent ef8fd32 commit af20828
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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
Expand Up @@ -27,7 +27,7 @@ natord = "1.0"
num_cpus = "1.10"
number_prefix = "0.4"
scoped_threadpool = "0.1"
term_grid = "0.1"
term_grid = "0.2.0"
terminal_size = "0.1.16"
unicode-width = "0.1"
users = "0.11"
Expand Down
1 change: 1 addition & 0 deletions src/output/grid.rs
Expand Up @@ -46,6 +46,7 @@ impl<'a> Render<'a> {
grid.add(tg::Cell {
contents: filename.strings().to_string(),
width: *filename.width(),
alignment: tg::Alignment::Left,
});
}

Expand Down
2 changes: 2 additions & 0 deletions src/output/grid_details.rs
Expand Up @@ -263,6 +263,7 @@ impl<'a> Render<'a> {
let cell = grid::Cell {
contents: ANSIStrings(&column[row].contents).to_string(),
width: *column[row].width,
alignment: grid::Alignment::Left,
};

grid.add(cell);
Expand All @@ -276,6 +277,7 @@ impl<'a> Render<'a> {
let cell = grid::Cell {
contents: ANSIStrings(&cell.contents).to_string(),
width: *cell.width,
alignment: grid::Alignment::Left,
};

grid.add(cell);
Expand Down

1 comment on commit af20828

@SIGSTACKFAULT
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this causes #990

Please sign in to comment.