mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 02:13:47 +01:00
Improve list view and ranges (#1753)
This commit is contained in:
parent
c3a066eeb4
commit
2275575575
@ -176,6 +176,13 @@ pub fn autoview(context: RunnableContext) -> Result<OutputStream, ShellError> {
|
||||
} => {
|
||||
out!("{}", d);
|
||||
}
|
||||
Value {
|
||||
value: UntaggedValue::Primitive(Primitive::Range(_)),
|
||||
..
|
||||
} => {
|
||||
let output = format_leaf(&x).plain_string(100_000);
|
||||
out!("{}", output);
|
||||
}
|
||||
|
||||
Value { value: UntaggedValue::Primitive(Primitive::Binary(ref b)), .. } => {
|
||||
if let Some(binary) = binary {
|
||||
|
@ -374,7 +374,8 @@ impl RenderView for TableView {
|
||||
}
|
||||
}
|
||||
|
||||
let skip_headers = self.headers.len() == 2 && self.headers[1] == "";
|
||||
let skip_headers = (self.headers.len() == 2 && self.headers[1] == "")
|
||||
|| (self.headers.len() == 1 && self.headers[0] == "");
|
||||
|
||||
let header: Vec<Cell> = self
|
||||
.headers
|
||||
|
Loading…
Reference in New Issue
Block a user