Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix #7338 #7343

Merged
merged 2 commits into from
Dec 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Try to fix #7338
Signed-off-by: Maxim Zhiburt <[email protected]>
  • Loading branch information
zhiburt committed Dec 3, 2022
commit 6952df33aa462b9bc60bbfc1f3e20eaf714283ce
4 changes: 2 additions & 2 deletions crates/nu-command/src/viewers/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,6 @@ fn convert_to_table2<'a>(
}

for (row, item) in input.clone().into_iter().enumerate() {
let row = if with_header { row + 1 } else { row };

if let Some(ctrlc) = &ctrlc {
if ctrlc.load(Ordering::SeqCst) {
return Ok(None);
Expand All @@ -935,6 +933,8 @@ fn convert_to_table2<'a>(
column_width = max(column_width, width);

let value = NuTable::create_cell(value.0, value.1);

let row = if with_header { row + 1 } else { row };
data[row].push(value);
}

Expand Down