From 670656b26f1aeadc3f18e6692a9fdf1b02da799c Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 4 Jun 2026 22:43:06 +0300 Subject: fix: forward resize terminal responses refs #471 --- src/pane.rs | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'src/pane.rs') diff --git a/src/pane.rs b/src/pane.rs index 248f5bb1..19556ffe 100644 --- a/src/pane.rs +++ b/src/pane.rs @@ -722,11 +722,24 @@ impl PaneRuntimeIo { } } - fn resize(&self, rows: u16, cols: u16, cell_width_px: u32, cell_height_px: u32) { + fn resize( + &self, + rows: u16, + cols: u16, + cell_width_px: u32, + cell_height_px: u32, + terminal_responses: Vec, + ) { match self { #[cfg(unix)] PaneRuntimeIo::Actor(actor) => { - actor.resize(rows, cols, cell_width_px, cell_height_px); + actor.resize( + rows, + cols, + cell_width_px, + cell_height_px, + terminal_responses, + ); } #[cfg(test)] PaneRuntimeIo::TestChannel { resize_tx, .. } => { @@ -1814,9 +1827,16 @@ impl PaneRuntime { return; } self.current_size.set(size); - self.terminal + let terminal_responses = self + .terminal .resize(rows, cols, cell_width_px, cell_height_px); - self.io.resize(rows, cols, cell_width_px, cell_height_px); + self.io.resize( + rows, + cols, + cell_width_px, + cell_height_px, + terminal_responses, + ); } pub fn nudge_child_redraw_after_handoff(&self) { -- cgit v1.2.3