From 51ecdfeebb6986ab7f9fa1ad86bdbda57b77ea5c Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Wed, 24 Sep 2025 18:25:01 +0200 Subject: [PATCH] fix(resurrection): occasional status-bar pop-out after resurrection (#4440) * fix(resurrection): occasional status-bar pop-out after resurrection * add pr --- CHANGELOG.md | 1 + zellij-utils/src/input/layout.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7fc1a204..9e250885f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * fix: meta key handling in web client (https://github.com/zellij-org/zellij/pull/4376) * refactor: move logical structures from client to server (https://github.com/zellij-org/zellij/pull/4383) * fix: make sessions compatible across versions (https://github.com/zellij-org/zellij/pull/4439) +* fix: occasional status-bar pop-out after resurrecting a session (https://github.com/zellij-org/zellij/pull/4440) ## [0.43.1] - 2025-08-08 * fix: pane rename backspace regression (https://github.com/zellij-org/zellij/pull/4346) diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs index ac0f54b99..de555a00b 100644 --- a/zellij-utils/src/input/layout.rs +++ b/zellij-utils/src/input/layout.rs @@ -1656,6 +1656,21 @@ impl Layout { .map(|f| f.populate_run_plugin_if_needed(&plugin_aliases)); } } + for swap_tiled_layout in &mut self.swap_tiled_layouts { + for (_constraint, tiled_pane_layout) in &mut swap_tiled_layout.0 { + tiled_pane_layout.populate_plugin_aliases_in_layout(plugin_aliases); + } + } + for swap_floating_layout in &mut self.swap_floating_layouts { + for (_constraint, floating_pane_layouts) in &mut swap_floating_layout.0 { + for floating_pane_layout in floating_pane_layouts { + floating_pane_layout + .run + .as_mut() + .map(|f| f.populate_run_plugin_if_needed(plugin_aliases)); + } + } + } } pub fn add_cwd_to_layout(&mut self, cwd: &PathBuf) { for (_, tiled_pane_layout, floating_panes) in self.tabs.iter_mut() {