Skip to content

Commit

Permalink
style(fmt): rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
imsnif committed Feb 2, 2025
1 parent 86f30c4 commit 23f3a11
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zellij-server/src/tab/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4190,7 +4190,8 @@ impl Tab {
match self.suppressed_panes.remove(&pane_id) {
Some(pane) => {
self.show_floating_panes();
self.add_floating_pane(pane.1, pane_id, None, true).non_fatal();
self.add_floating_pane(pane.1, pane_id, None, true)
.non_fatal();
self.floating_panes.focus_pane_for_all_clients(pane_id);
},
None => {
Expand Down Expand Up @@ -4526,7 +4527,10 @@ impl Tab {
if !self.floating_panes.panes_contain(pane_id) {
// if these panes are not floating, we make them floating (assuming doing so wouldn't
// be removing the last selectable tiled pane in the tab, which would close it)
if (self.tiled_panes.panes_contain(&pane_id) && self.get_selectable_tiled_panes().count() <= 1) || self.suppressed_panes.contains_key(pane_id) {
if (self.tiled_panes.panes_contain(&pane_id)
&& self.get_selectable_tiled_panes().count() <= 1)
|| self.suppressed_panes.contains_key(pane_id)
{
if let Some(pane) = self.extract_pane(*pane_id, true) {
self.add_floating_pane(pane, *pane_id, None, false)?;
}
Expand Down

0 comments on commit 23f3a11

Please sign in to comment.