Fix fix fix
This commit is contained in:
parent
9f79750ac3
commit
489dd09136
|
@ -591,6 +591,10 @@ fn load_theme(
|
||||||
let color = ANSIBuf::from(color);
|
let color = ANSIBuf::from(color);
|
||||||
table.get_config_mut().set_border_color_default(color);
|
table.get_config_mut().set_border_color_default(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !with_header {
|
||||||
|
table.with(RemoveHorizontalLine);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn maybe_truncate_columns(
|
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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user