Skip to content

Commit

Permalink
fix: toggle pane frames with floating panes
Browse files Browse the repository at this point in the history
fixes #50
  • Loading branch information
dj95 committed Mar 26, 2024
1 parent 8e938da commit a584399
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/frames.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use zellij_tile::prelude::*;

#[tracing::instrument(skip_all)]
pub fn hide_frames_on_single_pane(
tabs: Vec<TabInfo>,
pane_info: &PaneManifest,
Expand All @@ -17,7 +18,9 @@ pub fn hide_frames_on_single_pane(
return;
}

let panes: Vec<&PaneInfo> = panes.iter().filter(|p| !p.is_plugin).collect();
tracing::debug!("panes {:?}", panes);

let panes: Vec<&PaneInfo> = panes.iter().filter(|p| !p.is_plugin && !p.is_floating).collect();

// frame is enabled, when content does no start at [0, 0]. With default frames
// it's [1, 1]
Expand Down

0 comments on commit a584399

Please sign in to comment.