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:
parent
1b31ee5f94
commit
34090580a0
@ -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,
|
||||
}],
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user