aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/compositor.rs
diff options
context:
space:
mode:
authorRoberto Vidal2022-12-15 08:59:34 +0000
committerGitHub2022-12-15 08:59:34 +0000
commitf916915b53fa6fedd3f9106bcf58163083cc052e (patch)
treec105891b33bdbf67bb6c29f374cd5a097d0e9116 /helix-term/src/compositor.rs
parent42ad1a9e043e2e0fb148924ff79b9abbe06907ae (diff)
add redraw command (#4354)
* add redraw command * update docs * Update helix-term/src/commands/typed.rs Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * update docs Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
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 9dad3620..18620b7b 100644
--- a/helix-term/src/compositor.rs
+++ b/helix-term/src/compositor.rs
@@ -197,6 +197,10 @@ impl Compositor {
.find(|component| component.id() == Some(id))
.and_then(|component| component.as_any_mut().downcast_mut())
}
+
+ pub fn clear(&mut self) -> std::io::Result<()> {
+ self.terminal.clear()
+ }
}
// View casting, taken straight from Cursive