mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 14:22:37 +03:00
parent
f09992f704
commit
c2f1be53ba
@ -114,6 +114,7 @@ As features stabilize some brief notes about them will accumulate here.
|
|||||||
immediately with the default `exit_behavior` setting. Now ssh sessions
|
immediately with the default `exit_behavior` setting. Now ssh sessions
|
||||||
override `exit_behavior="CloseOnCleanExit"` while connecting so that error
|
override `exit_behavior="CloseOnCleanExit"` while connecting so that error
|
||||||
information can be displayed. #3941
|
information can be displayed. #3941
|
||||||
|
* Divide by zero panic with lots of splits and resizing panes. #3921
|
||||||
|
|
||||||
#### Updated
|
#### Updated
|
||||||
* Bundled harfbuzz to 8.0.0
|
* Bundled harfbuzz to 8.0.0
|
||||||
|
@ -1177,8 +1177,14 @@ impl TabInner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn apply_pane_size(&mut self, pane_size: TerminalSize, cursor: &mut Cursor) {
|
fn apply_pane_size(&mut self, pane_size: TerminalSize, cursor: &mut Cursor) {
|
||||||
let cell_width = pane_size.pixel_width / pane_size.cols;
|
let cell_width = pane_size
|
||||||
let cell_height = pane_size.pixel_height / pane_size.rows;
|
.pixel_width
|
||||||
|
.checked_div(pane_size.cols)
|
||||||
|
.unwrap_or(1);
|
||||||
|
let cell_height = pane_size
|
||||||
|
.pixel_height
|
||||||
|
.checked_div(pane_size.rows)
|
||||||
|
.unwrap_or(1);
|
||||||
if let Ok(Some(node)) = cursor.node_mut() {
|
if let Ok(Some(node)) = cursor.node_mut() {
|
||||||
// Adjust the size of the node; we preserve the size of the first
|
// Adjust the size of the node; we preserve the size of the first
|
||||||
// child and adjust the second, so if we are split down the middle
|
// child and adjust the second, so if we are split down the middle
|
||||||
|
Loading…
Reference in New Issue
Block a user