Fixes Don't include floating in tabbed/stacked
@@ -929,10 +929,14 @@ impl LayoutTree {
// I can't do it inside the match ahead because it borrows
// self.tree, and I need self.tree to get the children's titles
- let titles = children.iter().map(|&node_ix| {
+ let titles = children.iter()
+ .filter(|&&node_ix| {
+ !self.tree[node_ix].floating()
+ })
+ .map(|&node_ix| {
match self.tree[node_ix] {
- Container::Container { ref mut borders, .. } |
- Container::View { ref mut borders, .. } =>
+ Container::Container { ref borders, .. } |
+ Container::View { ref borders, .. } =>
borders.as_ref().map( |b| b.title() )
.unwrap_or("").into(),
ref child => {
