diff options
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index c3afbd92..4d9c24a0 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -821,15 +821,15 @@ pub fn command_mode(cx: &mut Context) { let parts = input.split_ascii_whitespace().collect::<Vec<&str>>(); match *parts.as_slice() { - ["q" | "quit"] => { + ["q"] | ["quit"] => { editor.close(editor.view().id); // editor.should_close = true, } - ["o" | "open", path] => { + ["o", path] | ["open", path] => { use helix_view::editor::Action; editor.open(path.into(), Action::Replace); } - ["w" | "write"] => { + ["w"] | ["write"] => { // TODO: non-blocking via save() command let id = editor.view().doc; let doc = &mut editor.documents[id]; |