From a92949b5c3c396e39536f363686beb37b4595d96 Mon Sep 17 00:00:00 2001 From: Maxim Zhiburt Date: Mon, 8 May 2023 19:17:14 +0300 Subject: [PATCH] nu-explore: Fix pipeline rendering (#9137) Must be fixed (but I would check). I wonder if it was a regression caused by `Value::LazyRecord`. I mean likely the issue was before the refactoring I did. close #9130 --------- Signed-off-by: Maxim Zhiburt --- crates/nu-explore/src/nu_common/value.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/nu-explore/src/nu_common/value.rs b/crates/nu-explore/src/nu_common/value.rs index a20f96e27..109f1a441 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]]), }