diff options
author | Jan Hrastnik | 2021-06-02 13:40:08 +0000 |
---|---|---|
committer | Jan Hrastnik | 2021-06-02 13:40:08 +0000 |
commit | 78980f575be1cbb31f1bdab92d3ecd2be4d2adac (patch) | |
tree | 7c6fc677061b0aa7a47661ce610487df8dd99409 /helix-term | |
parent | c2e6b9f506fddec15e48bd06cf712aef2bf53e3c (diff) |
autoresize terminal in compositor render
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/compositor.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index 3a17904d..7753e0a5 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -122,7 +122,9 @@ impl Compositor { } pub fn render(&mut self, cx: &mut Context) { + self.terminal.autoresize().unwrap(); let area = self.size(); + let surface = self.terminal.current_buffer_mut(); for layer in &self.layers { |