aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/picker.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-12-21 07:23:05 +0000
committerBlaž Hrastnik2020-12-21 07:26:22 +0000
commit3d3295bb759994d4fbf328c126678f63e0c38d4f (patch)
treeca93396f3fa0c42a8c6f0c2277f41b1d344fe791 /helix-term/src/ui/picker.rs
parentea502c8665332932b2311df3852b5ac8df6509af (diff)
ui: buffer picker on ctrl-b
Diffstat (limited to 'helix-term/src/ui/picker.rs')
-rw-r--r--helix-term/src/ui/picker.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs
index 0a12cff9..94eec2eb 100644
--- a/helix-term/src/ui/picker.rs
+++ b/helix-term/src/ui/picker.rs
@@ -123,10 +123,12 @@ impl<T> Component for Picker<T> {
_ => return EventResult::Ignored,
};
- let close_fn = EventResult::Consumed(Some(Box::new(|compositor: &mut Compositor| {
- // remove the layer
- compositor.pop();
- })));
+ let close_fn = EventResult::Consumed(Some(Box::new(
+ |compositor: &mut Compositor, editor: &mut Editor| {
+ // remove the layer
+ compositor.pop();
+ },
+ )));
match key_event {
// KeyEvent {