aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-12-18 10:19:50 +0000
committerBlaž Hrastnik2020-12-18 10:19:50 +0000
commit25aa45e76c9bec62f36a59768298e1f2ea2678bf (patch)
tree41b876f9bb067e5f199fe53ecb78eeb57d09719b /helix-term/src/commands.rs
parent0b63e838e0ffe9a36a2cb51790f464d634b843af (diff)
picker: Factor out file picker, we want to reuse code for other pickers.
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 4b246721..5f8f63f1 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -458,7 +458,7 @@ pub fn command_mode(cx: &mut Context) {
}
pub fn file_picker(cx: &mut Context) {
cx.callback = Some(Box::new(|compositor: &mut Compositor| {
- let picker = ui::Picker::new();
+ let picker = ui::file_picker("./");
compositor.push(Box::new(picker));
}));
}