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:
parent
b735975486
commit
b3afb97fcd
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue