Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/commands.rs')
| -rw-r--r-- | helix-term/src/commands.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 1fb27a39..a95e2a90 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1344,7 +1344,7 @@ fn goto_file_impl(cx: &mut Context, action: Action) { let path = path::expand(&sel); let path = &rel_path.join(path); if path.is_dir() { - let picker = ui::file_picker(path.into(), &cx.editor.config()); + let picker = ui::file_picker(cx.editor, path.into()); cx.push_layer(Box::new(overlaid(picker))); } else if let Err(e) = cx.editor.open(path, action) { cx.editor.set_error(format!("Open file failed: {:?}", e)); @@ -1381,7 +1381,7 @@ fn open_url(cx: &mut Context, url: Url, action: Action) { Ok(_) | Err(_) => { let path = &rel_path.join(url.path()); if path.is_dir() { - let picker = ui::file_picker(path.into(), &cx.editor.config()); + let picker = ui::file_picker(cx.editor, path.into()); cx.push_layer(Box::new(overlaid(picker))); } else if let Err(e) = cx.editor.open(path, action) { cx.editor.set_error(format!("Open file failed: {:?}", e)); @@ -3001,7 +3001,7 @@ fn file_picker(cx: &mut Context) { cx.editor.set_error("Workspace directory does not exist"); return; } - let picker = ui::file_picker(root, &cx.editor.config()); + let picker = ui::file_picker(cx.editor, root); cx.push_layer(Box::new(overlaid(picker))); } @@ -3018,7 +3018,7 @@ fn file_picker_in_current_buffer_directory(cx: &mut Context) { } }; - let picker = ui::file_picker(path, &cx.editor.config()); + let picker = ui::file_picker(cx.editor, path); cx.push_layer(Box::new(overlaid(picker))); } @@ -3029,7 +3029,7 @@ fn file_picker_in_current_directory(cx: &mut Context) { .set_error("Current working directory does not exist"); return; } - let picker = ui::file_picker(cwd, &cx.editor.config()); + let picker = ui::file_picker(cx.editor, cwd); cx.push_layer(Box::new(overlaid(picker))); } |