Fix fix fix

This commit is contained in:
Maxim Zhiburt 2024-08-06 09:27:05 +03:00
parent 9f79750ac3
commit 489dd09136

View File

@ -591,6 +591,10 @@ fn load_theme(
let color = ANSIBuf::from(color);
table.get_config_mut().set_border_color_default(color);
}
if !with_header {
table.with(RemoveHorizontalLine);
}
}
fn maybe_truncate_columns(
@ -1221,3 +1225,11 @@ impl TableOption<NuRecords, ColoredConfig, CompleteDimensionVecRecords<'_>> for
}
}
}
struct RemoveHorizontalLine;
impl<D> TableOption<NuRecords, ColoredConfig, D> for RemoveHorizontalLine {
fn change(self, recs: &mut NuRecords, cfg: &mut ColoredConfig, _: &mut D) {
cfg.remove_horizontal_line(1, recs.count_rows());
}
}