Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r--helix-term/src/compositor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs
index 266a8aec..bd7c98b7 100644
--- a/helix-term/src/compositor.rs
+++ b/helix-term/src/compositor.rs
@@ -220,6 +220,10 @@ impl Compositor {
pub fn need_full_redraw(&mut self) {
self.full_redraw = true;
}
+
+ pub fn layer_count(&self) -> usize {
+ self.layers.len()
+ }
}
// View casting, taken straight from Cursive