Don't forget to tell split terminals that they have a new size!
This commit is contained in:
parent
de44fbecff
commit
277791f0ca
1 changed files with 16 additions and 1 deletions
17
src/tab.rs
17
src/tab.rs
|
|
@ -377,6 +377,14 @@ impl Tab {
|
|||
);
|
||||
self.panes.insert(pid, Box::new(new_terminal));
|
||||
|
||||
if let PaneId::Terminal(active_terminal_pid) = active_pane_id {
|
||||
self.os_api.set_terminal_size_using_fd(
|
||||
*active_terminal_pid,
|
||||
top_winsize.columns as u16,
|
||||
top_winsize.rows as u16,
|
||||
);
|
||||
}
|
||||
|
||||
self.active_terminal = Some(pid);
|
||||
self.render();
|
||||
}
|
||||
|
|
@ -421,9 +429,16 @@ impl Tab {
|
|||
right_winsize.columns as u16,
|
||||
right_winsize.rows as u16,
|
||||
);
|
||||
|
||||
self.panes.insert(pid, Box::new(new_terminal));
|
||||
|
||||
if let PaneId::Terminal(active_terminal_pid) = active_pane_id {
|
||||
self.os_api.set_terminal_size_using_fd(
|
||||
*active_terminal_pid,
|
||||
left_winsize.columns as u16,
|
||||
left_winsize.rows as u16,
|
||||
);
|
||||
}
|
||||
|
||||
self.active_terminal = Some(pid);
|
||||
self.render();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue