diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index d161f786c..c357c6d63 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -269,10 +269,8 @@ impl FilePicker { EventResult::Consumed(callback) } -} -impl Component for FilePicker { - fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) { + fn render_picker(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) { // +---------+ +---------+ // |prompt | |preview | // +---------+ | | @@ -416,6 +414,12 @@ impl Component for FilePicker { } } +impl Component for FilePicker { + fn render(&mut self, area: Rect, surface: &mut Surface, cx: &mut Context) { + self.render_picker(area, surface, cx); + } +} + #[derive(PartialEq, Eq, Debug)] struct PickerMatch { score: i64,