diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-10-29 19:58:26 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-10-29 17:58:26 +0100 |
commit | b3afb97fcd2abb928a6d821c5dae3e5b0e9e2fe4 (patch) | |
tree | 03280a6ecb18313b79b9f8d96dc35eb48d4e1859 | |
parent | b7359754869a6e01901b6638d7c2ba68f91809dd (diff) | |
download | alacritty-b3afb97fcd2abb928a6d821c5dae3e5b0e9e2fe4.tar.gz alacritty-b3afb97fcd2abb928a6d821c5dae3e5b0e9e2fe4.zip |
Fix message bar drawing over terminal after resize
This regression was introduced in
729eef0c933831bccfeac6a355bdb410787fbe5f.
Fixes #2924.
-rw-r--r-- | alacritty/src/display.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alacritty/src/display.rs b/alacritty/src/display.rs index f20c958d..ff91852f 100644 --- a/alacritty/src/display.rs +++ b/alacritty/src/display.rs @@ -332,9 +332,8 @@ impl Display { let mut pty_size = self.size_info; // Subtract message bar lines from pty size - if resize_pending.message_buffer.is_some() { - let lines = - message_buffer.message().map(|m| m.text(&self.size_info).len()).unwrap_or(0); + if let Some(message) = message_buffer.message() { + let lines = message.text(&self.size_info).len(); pty_size.height -= pty_size.cell_height * lines as f32; } |