Improve list view and ranges (#1753)

This commit is contained in:
Jonathan Turner
2020-05-12 08:06:09 +12:00
committed by GitHub
parent c3a066eeb4
commit 2275575575
2 changed files with 9 additions and 1 deletions

View File

@@ -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 {