mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-24 10:26:18 +04:00
Bail on zero-arg :help invocation
This commit is contained in:
parent
321fce3ba6
commit
816dfee64a
@ -1813,10 +1813,8 @@ fn help(cx: &mut compositor::Context, args: &[Cow<str>], event: PromptEvent) ->
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if args.is_empty() {
|
||||
// TODO: Open a list of commands?
|
||||
todo!()
|
||||
}
|
||||
// TODO: Open a list of commands / overview?
|
||||
ensure!(!args.is_empty(), "Help topic or keybind required");
|
||||
|
||||
if args[0] == "topics" {
|
||||
let dir_path = helix_loader::runtime_dir().join("help/topics");
|
||||
|
Loading…
Reference in New Issue
Block a user