Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/compositor.rs')
-rw-r--r--helix-view/src/compositor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/compositor.rs b/helix-view/src/compositor.rs
index e367e54e..f3e6e093 100644
--- a/helix-view/src/compositor.rs
+++ b/helix-view/src/compositor.rs
@@ -190,6 +190,7 @@ impl Compositor {
}
}
+ #[cfg(feature = "term")]
pub fn cursor(&self, area: Rect, editor: &Editor) -> (Option<Position>, CursorKind) {
for layer in self.layers.iter().rev() {
if let (Some(pos), kind) = layer.cursor(area, editor) {