diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 673d06af..ec76c81d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2346,10 +2346,10 @@ mod cmd { pub static COMMANDS: Lazy> = Lazy::new(|| { TYPABLE_COMMAND_LIST - .into_iter() + .iter() .flat_map(|cmd| { std::iter::once((cmd.name, cmd)) - .chain(cmd.aliases.into_iter().map(move |&alias| (alias, cmd))) + .chain(cmd.aliases.iter().map(move |&alias| (alias, cmd))) }) .collect() });