diff --git a/crates/nu-explore/src/nu_common/value.rs b/crates/nu-explore/src/nu_common/value.rs index a20f96e27c..109f1a441e 100644 --- a/crates/nu-explore/src/nu_common/value.rs +++ b/crates/nu-explore/src/nu_common/value.rs @@ -121,6 +121,13 @@ pub fn collect_input(value: Value) -> (Vec, Vec>) { (vec![String::from("")], lines) } + Value::LazyRecord { val, span } => match val.collect() { + Ok(value) => collect_input(value), + Err(_) => ( + vec![String::from("")], + vec![vec![Value::LazyRecord { val, span }]], + ), + }, Value::Nothing { .. } => (vec![], vec![]), value => (vec![String::from("")], vec![vec![value]]), }