@@ -440,8 +440,15 @@ pub fn command_mode(cx: &mut Context) {
443− match input {
443+ let parts = input.split_ascii_whitespace().collect::<Vec<&str>>();
445+ match parts.as_slice() {
444− "q" => editor.should_close = true,
446+ &["q"] => editor.should_close = true,
448+ // TODO: make view()/view_mut() always contain a view.
449+ let size = editor.view().unwrap().size;
450+ editor.open(path.into(), size);