diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-05-14 02:06:19 +0300 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-05-13 23:06:19 +0000 |
commit | f93a84aef4d8a9d7f00f9e3586abd335317bc452 (patch) | |
tree | 749c5f47b313218d3fce9ae9e4974634a50ad108 /alacritty_terminal | |
parent | 5a71b599da5cee81eef1b2d8dabddec59c1d6df1 (diff) | |
download | alacritty-f93a84aef4d8a9d7f00f9e3586abd335317bc452.tar.gz alacritty-f93a84aef4d8a9d7f00f9e3586abd335317bc452.zip |
Fix message bar not updating PTY size on hide
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/display.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/alacritty_terminal/src/display.rs b/alacritty_terminal/src/display.rs index 4bdb7de1..081625ac 100644 --- a/alacritty_terminal/src/display.rs +++ b/alacritty_terminal/src/display.rs @@ -367,7 +367,10 @@ impl Display { } } - if font_changed || self.last_message != terminal.message_buffer_mut().message() { + // Message bar update detected + let message_bar_changed = self.last_message != terminal.message_buffer_mut().message(); + + if font_changed || message_bar_changed { if new_size == None { // Force a resize to refresh things new_size = Some(PhysicalSize::new( @@ -415,7 +418,10 @@ impl Display { pty_size.height -= pty_size.cell_height * message.text(&size).len() as f32; } - if previous_cols != pty_size.cols() || previous_lines != pty_size.lines() { + if message_bar_changed + || previous_cols != pty_size.cols() + || previous_lines != pty_size.lines() + { pty_resize_handle.on_resize(&pty_size); } |