1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-24 07:46:59 +03:00

tabbar: default to a dummy, non-empty state

This is to avoid computing a zero height initial tab bar as discussed
in 808d7df8d4 (commitcomment-69980693)

cc: @davidrios
This commit is contained in:
Wez Furlong 2022-03-31 07:50:34 -07:00
parent 1b31ee5f94
commit 34090580a0

View File

@ -159,7 +159,12 @@ impl TabBarState {
pub fn default() -> Self {
Self {
line: Line::with_width(1, SEQ_ZERO),
items: vec![],
items: vec![TabEntry {
item: TabBarItem::None,
title: Line::from_text(" ", &CellAttributes::blank(), 1),
x: 1,
width: 1,
}],
}
}