Unnamed repository; edit this file 'description' to name the repository.
postpone clone after found (#1656)
Cydiater 2022-02-13
parent a19a6ca · commit 7083b98
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 9918d26c..ded5a0e4 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -445,8 +445,8 @@ impl std::str::FromStr for MappableCommand {
} else {
MappableCommand::STATIC_COMMAND_LIST
.iter()
- .cloned()
.find(|cmd| cmd.name() == s)
+ .cloned()
.ok_or_else(|| anyhow!("No command named '{}'", s))
}
}