Skip to content

Commit

Permalink
fix(grid): fixed grid bug
Browse files Browse the repository at this point in the history
Merge pull request #79 from cafkafk/cafkdev-grid-bug
  • Loading branch information
cafkafk authored Jul 29, 2023
2 parents fdc7f00 + 4d7bec5 commit 509437e
Show file tree
Hide file tree
Showing 4 changed files with 3 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 @@ -28,7 +28,7 @@ natord = "1.0"
num_cpus = "1.10"
number_prefix = "0.4"
scoped_threadpool = "0.1"
term_grid = "0.2.0"
term_grid = "0.1"
terminal_size = "0.1.16"
unicode-width = "0.1"
zoneinfo_compiled = "0.5.1"
Expand Down
1 change: 0 additions & 1 deletion src/output/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ impl<'a> Render<'a> {
// with hyperlink escape sequences,
// the actual *contents.width() is larger than actually needed, so we take only the filename
width: filename.bare_width(),
alignment: tg::Alignment::Left,
});
}

Expand Down
2 changes: 0 additions & 2 deletions src/output/grid_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ 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,7 +275,6 @@ 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

0 comments on commit 509437e

Please sign in to comment.