From 5c2d2fda213164fe2cba005f28cee263486587ed Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 29 Mar 2021 15:21:48 +0900 Subject: Wire up opening in splits via pickers. --- helix-term/src/ui/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'helix-term/src/ui/mod.rs') diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 2d282867..8cb82fcb 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -103,10 +103,9 @@ pub fn file_picker(root: &str) -> Picker { // format_fn path.strip_prefix("./").unwrap().to_str().unwrap().into() }, - move |editor: &mut Editor, path: &PathBuf| { - use helix_view::editor::Action; + move |editor: &mut Editor, path: &PathBuf, action| { let document_id = editor - .open(path.into(), Action::Replace) + .open(path.into(), action) .expect("editor.open failed"); }, ) -- cgit v1.2.3-70-g09d2