diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-04-24 18:17:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 18:17:09 +0000 |
commit | 73e7a95d543ccd0e197c923e305d4d7c45e273d8 (patch) | |
tree | f502b4e236e40d39605ba51618af3eaa122f7004 | |
parent | e9813031f6e308984cb5547aa1049839cb75745f (diff) | |
download | alacritty-73e7a95d543ccd0e197c923e305d4d7c45e273d8.tar.gz alacritty-73e7a95d543ccd0e197c923e305d4d7c45e273d8.zip |
Fix message bar not updating PTY size
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | src/display.rs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ebb4598..fa380e05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - On Windows, Alacritty will now use the native DirectWrite font API - The `start_maximized` window option is now `startup_mode: Maximized` +### Fixed + +- PTY size not getting updated when message bar is shown + ## Version 0.3.2 ### Fixed diff --git a/src/display.rs b/src/display.rs index 7e8c0057..1d5799f6 100644 --- a/src/display.rs +++ b/src/display.rs @@ -416,7 +416,7 @@ impl Display { pty_size.height -= pty_size.cell_height * message.text(&size).len() as f32; } - if previous_cols != size.cols() || previous_lines != size.lines() { + if previous_cols != pty_size.cols() || previous_lines != pty_size.lines() { pty_resize_handle.on_resize(&pty_size); } |