aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 5c1021e1..addd7437 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -935,9 +935,7 @@ pub fn buffer_picker(cx: &mut Context) {
},
|editor: &mut Editor, (id, _path): &(DocumentId, Option<PathBuf>), _action| {
use helix_view::editor::Action;
- editor
- .switch(*id, Action::Replace)
- .expect("editor.open failed");
+ editor.switch(*id, Action::Replace);
},
);
cx.push_layer(Box::new(picker));