summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs20
1 files changed, 14 insertions, 6 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 09b7836f..21595eae 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -187,13 +187,21 @@ impl Application {
}
fn render(&mut self) {
- let mut cx = crate::compositor::Context {
- editor: &mut self.editor,
- jobs: &mut self.jobs,
- scroll: None,
- };
+ #[cfg(feature = "integration")]
+ return;
+
+ #[allow(unreachable_code)]
+ {
+ let compositor = &mut self.compositor;
- // self.compositor.render(&mut cx);
+ let mut cx = crate::compositor::Context {
+ editor: &mut self.editor,
+ jobs: &mut self.jobs,
+ scroll: None,
+ };
+
+ compositor.render(&mut cx);
+ }
}
pub async fn event_loop(&mut self) {