Skip to content

Commit af20828

Browse files
committed
Update term_grid to 0.2
1 parent ef8fd32 commit af20828

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ natord = "1.0"
2727
num_cpus = "1.10"
2828
number_prefix = "0.4"
2929
scoped_threadpool = "0.1"
30-
term_grid = "0.1"
30+
term_grid = "0.2.0"
3131
terminal_size = "0.1.16"
3232
unicode-width = "0.1"
3333
users = "0.11"

src/output/grid.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ impl<'a> Render<'a> {
4646
grid.add(tg::Cell {
4747
contents: filename.strings().to_string(),
4848
width: *filename.width(),
49+
alignment: tg::Alignment::Left,
4950
});
5051
}
5152

src/output/grid_details.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ impl<'a> Render<'a> {
263263
let cell = grid::Cell {
264264
contents: ANSIStrings(&column[row].contents).to_string(),
265265
width: *column[row].width,
266+
alignment: grid::Alignment::Left,
266267
};
267268

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

281283
grid.add(cell);

0 commit comments

Comments
 (0)