1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 13:16:39 +03:00

fix: PaneInformation.pixel_height returned width!

Thank you to Rust's unread field warning!
This commit is contained in:
Wez Furlong 2024-07-14 07:52:05 -07:00
parent 209d13bd6b
commit 616eb2fc21
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
2 changed files with 3 additions and 1 deletions

View File

@ -86,6 +86,8 @@ As features stabilize some brief notes about them will accumulate here.
in a pure temporary directory; they live in a cache dir, and if someone
does remove or truncate these files, we now convert that error case
into blank frame(s). #5422
* PaneInformation object returned `pixel_width` when asked to return the
`pixel_height`.
#### Updated
* Bundled conpty.dll and OpenConsole.exe to build 1.19.240130002.nupkg

View File

@ -283,7 +283,7 @@ impl UserData for PaneInformation {
fields.add_field_method_get("width", |_, this| Ok(this.width));
fields.add_field_method_get("height", |_, this| Ok(this.height));
fields.add_field_method_get("pixel_width", |_, this| Ok(this.pixel_width));
fields.add_field_method_get("pixel_height", |_, this| Ok(this.pixel_width));
fields.add_field_method_get("pixel_height", |_, this| Ok(this.pixel_height));
fields.add_field_method_get("title", |_, this| Ok(this.title.clone()));
fields.add_field_method_get("user_vars", |_, this| Ok(this.user_vars.clone()));
fields.add_field_method_get("foreground_process_name", |_, this| {