Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/ui/picker.rs')
-rw-r--r--helix-view/src/ui/picker.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-view/src/ui/picker.rs b/helix-view/src/ui/picker.rs
index 91022e44..0bb3a23f 100644
--- a/helix-view/src/ui/picker.rs
+++ b/helix-view/src/ui/picker.rs
@@ -266,6 +266,9 @@ impl<T: 'static> compositor::term::Render for FilePicker<T> {
}
}
+#[cfg(feature = "ui")]
+impl<T: 'static> compositor::ui::Render for FilePicker<T> {}
+
impl<T: 'static> Component for FilePicker<T> {
fn handle_event(&mut self, event: Event, ctx: &mut Context) -> EventResult {
// TODO: keybinds for scrolling preview
@@ -658,3 +661,6 @@ impl<T: 'static> compositor::term::Render for Picker<T> {
self.prompt.cursor(area, editor)
}
}
+
+#[cfg(feature = "ui")]
+impl<T: 'static> compositor::ui::Render for Picker<T> {}