diff options
| author | Aram Drevekenin <aram@poor.dev> | 2023-06-20 16:38:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-20 16:38:01 +0200 |
| commit | 019452bdbf73748cc724f9681da2584cd4c1fdfd (patch) | |
| tree | 04160bd443a439d8a23dbabe3862b23b8134a94d /zellij-server/src/tab | |
| parent | docs(changelog): hotfix default theme (diff) | |
| download | sl0ppij-019452bdbf73748cc724f9681da2584cd4c1fdfd.tar.gz sl0ppij-019452bdbf73748cc724f9681da2584cd4c1fdfd.tar.xz sl0ppij-019452bdbf73748cc724f9681da2584cd4c1fdfd.zip | |
fix(plugins): make hide_self api idempotent (#2568)
* fix(plugins): make hide_self api idempotent
* style(fmt): rustfmt
Diffstat (limited to 'zellij-server/src/tab')
| -rw-r--r-- | zellij-server/src/tab/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index f1326c31..d3a26b40 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -1308,6 +1308,9 @@ impl Tab { || self.floating_panes.panes_contain(pid) || self.suppressed_panes.values().any(|s_p| s_p.pid() == *pid) } + pub fn has_non_suppressed_pane_with_pid(&self, pid: &PaneId) -> bool { + self.tiled_panes.panes_contain(pid) || self.floating_panes.panes_contain(pid) + } pub fn handle_pty_bytes(&mut self, pid: u32, bytes: VteBytes) -> Result<()> { if self.is_pending { self.pending_instructions |
