summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-01-18 00:04:40 +0000
committerSkyler Hawthorne2022-06-19 03:54:03 +0000
commit502d3290fb88d8a871b0824adc7987a98104933d (patch)
tree5348192b2237e97f3bc0068503279760e8c187f5 /helix-term/src
parent308cab3e5cd5e8d5a8c37498e725f51ab101a908 (diff)
improve test harness
* Use new macro syntax for encoding sequences of keys * Make convenience helpers for common test pattern * Use indoc for inline indented raw strings * Add feature flag for integration testing to disable rendering
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) {