From 6f3930ca73da5c5b596c4d7513f1a5b0eb5a3178 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Fri, 24 Dec 2021 05:35:43 -0500 Subject: [PATCH] Update `help` function signature --- helix-term/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index dae01a007..8488a707c 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2643,7 +2643,7 @@ pub mod cmd { fn help( cx: &mut compositor::Context, - args: &[&str], + args: &[Cow], _event: PromptEvent, ) -> anyhow::Result<()> { if args.is_empty() { @@ -2656,7 +2656,7 @@ pub mod cmd { .iter() .any(|command| command.name() == args[0]) { - args[0] + &args[0] } else { let _keys = args .iter()