diff options
Diffstat (limited to 'src/pane.rs')
| -rw-r--r-- | src/pane.rs | 28 |
1 files changed, 24 insertions, 4 deletions
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<Bytes>, + ) { 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) { |
