From 78980f575be1cbb31f1bdab92d3ecd2be4d2adac Mon Sep 17 00:00:00 2001 From: Jan Hrastnik Date: Wed, 2 Jun 2021 15:40:08 +0200 Subject: autoresize terminal in compositor render --- helix-term/src/compositor.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helix-term/src') 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 { -- cgit v1.2.3-70-g09d2