mirror of
https://github.com/wez/wezterm.git
synced 2024-12-19 19:31:49 +03:00
resize all tabs when resizing the window
This commit is contained in:
parent
ff5a3179e1
commit
2b822687be
@ -297,16 +297,13 @@ impl TerminalWindow {
|
|||||||
// so optimistically pretend that we have that extra pixel!
|
// so optimistically pretend that we have that extra pixel!
|
||||||
let rows = ((height as usize + 1) / self.cell_height) as u16;
|
let rows = ((height as usize + 1) / self.cell_height) as u16;
|
||||||
let cols = ((width as usize + 1) / self.cell_width) as u16;
|
let cols = ((width as usize + 1) / self.cell_width) as u16;
|
||||||
self.tabs
|
|
||||||
.get_active()
|
for mut tab in &mut self.tabs.tabs {
|
||||||
.pty
|
tab.pty.borrow_mut().resize(rows, cols, width, height)?;
|
||||||
.borrow_mut()
|
tab.terminal
|
||||||
.resize(rows, cols, width, height)?;
|
|
||||||
self.tabs
|
|
||||||
.get_active()
|
|
||||||
.terminal
|
|
||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.resize(rows as usize, cols as usize);
|
.resize(rows as usize, cols as usize);
|
||||||
|
}
|
||||||
|
|
||||||
Ok(true)
|
Ok(true)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user