diff options
author | Weiyuan Wu | 2023-09-08 01:46:36 +0000 |
---|---|---|
committer | GitHub | 2023-09-08 01:46:36 +0000 |
commit | 8017bb29990bd15eb31542fa25e8cb1207364b07 (patch) | |
tree | d035eb5f2348967bb41dcda6cb9f50fcf73ecd17 /helix-term/src/compositor.rs | |
parent | c0fd8bc61b4c1611a48312938aaf0e3121f393b1 (diff) |
add redraw command (#6949)
Co-authored-by: Roberto Vidal <vidal.roberto.j@gmail.com>
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r-- | helix-term/src/compositor.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index dc962e1f..3dcb5f2b 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -80,6 +80,7 @@ pub struct Compositor { area: Rect, pub(crate) last_picker: Option<Box<dyn Component>>, + pub(crate) full_redraw: bool, } impl Compositor { @@ -88,6 +89,7 @@ impl Compositor { layers: Vec::new(), area, last_picker: None, + full_redraw: false, } } @@ -206,6 +208,10 @@ impl Compositor { .find(|component| component.id() == Some(id)) .and_then(|component| component.as_any_mut().downcast_mut()) } + + pub fn need_full_redraw(&mut self) { + self.full_redraw = true; + } } // View casting, taken straight from Cursive |