From 1da3beb1ca7841288c99802330d92fb794fd3477 Mon Sep 17 00:00:00 2001 From: 132ikl <132@ikl.sh> Date: Tue, 1 Apr 2025 23:45:42 -0400 Subject: [PATCH] Update crates/nu-command/src/filters/where_.rs Co-authored-by: Bahex --- crates/nu-command/src/filters/where_.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/filters/where_.rs b/crates/nu-command/src/filters/where_.rs index d0c4288c83..f6ece970bf 100644 --- a/crates/nu-command/src/filters/where_.rs +++ b/crates/nu-command/src/filters/where_.rs @@ -43,7 +43,10 @@ While where supports closure literals, they can not be read from a variable. To ]) .required( "condition", - SyntaxShape::OneOf(vec![SyntaxShape::RowCondition, SyntaxShape::Closure(None)]), + SyntaxShape::OneOf(vec![ + SyntaxShape::RowCondition, + SyntaxShape::Closure(Some(vec![SyntaxShape::Any])), + ]), "Filter row condition or closure.", ) .allow_variants_without_examples(true)