diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-04 22:43:06 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-04 22:43:06 +0300 |
| commit | 670656b26f1aeadc3f18e6692a9fdf1b02da799c (patch) | |
| tree | 7401a16884f8c4088bff920435dce1e0f7b401de /src/pane.rs | |
| parent | 648afa1fd5b4c2eb74b4292b4eceeeb6d93016c1 (diff) | |
fix: forward resize terminal responses
refs #471
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) { |
