Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyuri committed Dec 9, 2024
1 parent 8949105 commit 57bfb26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zellij-utils/src/kdl/kdl_layout_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,8 @@ impl<'a> KdlLayoutParser<'a> {
}
// hide_floating_panes on the tab_layout takes precedence over the hide_floating_panes on the tab_template
tab_layout.hide_floating_panes =
kdl_get_bool_property_or_child_value!(kdl_node, "hide_floating_panes").unwrap_or(tab_layout.hide_floating_panes);
kdl_get_bool_property_or_child_value!(kdl_node, "hide_floating_panes")
.unwrap_or(tab_layout.hide_floating_panes);
tab_layout.external_children_index = None;
Ok((
is_focused,
Expand Down Expand Up @@ -1657,7 +1658,8 @@ impl<'a> KdlLayoutParser<'a> {
let mut tab_floating_children = vec![];
let mut external_children_index = None;
let mut children_index_offset = 0;
let hide_floating_panes = kdl_get_bool_property_or_child_value!(kdl_node, "hide_floating_panes").unwrap_or(false);
let hide_floating_panes =
kdl_get_bool_property_or_child_value!(kdl_node, "hide_floating_panes").unwrap_or(false);
let is_part_of_stack = false;
if let Some(children) = kdl_children_nodes!(kdl_node) {
for (i, child) in children.iter().enumerate() {
Expand Down

0 comments on commit 57bfb26

Please sign in to comment.