1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix message bar drawing over terminal after resize

This regression was introduced in
729eef0c93.

Fixes #2924.
This commit is contained in:
Kirill Chibisov 2019-10-29 19:58:26 +03:00 committed by Christian Duerr
parent b735975486
commit b3afb97fcd

View file

@ -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;
}