diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs index 66065508cf..9bbc87b278 100644 --- a/zellij-server/src/screen.rs +++ b/zellij-server/src/screen.rs @@ -2035,7 +2035,7 @@ impl Screen { tab_index_and_plugin_pane_id = Some((*tab_index, plugin_pane_id)); if move_to_focused_tab && focused_tab_index != *tab_index { plugin_pane_to_move_to_active_tab = - tab.extract_pane(plugin_pane_id, false, Some(client_id)); + tab.extract_pane(plugin_pane_id, true, Some(client_id)); } break; diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index d69a23cb84..3482cac639 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -2760,10 +2760,11 @@ impl Tab { pub fn extract_pane( &mut self, id: PaneId, - ignore_suppressed_panes: bool, + dont_swap_if_suppressed: bool, client_id: Option, ) -> Option> { - if !ignore_suppressed_panes && self.suppressed_panes.contains_key(&id) { + if !dont_swap_if_suppressed && self.suppressed_panes.contains_key(&id) { + // this is done for the scrollback editor return match self.replace_pane_with_suppressed_pane(id) { Ok(pane) => pane, Err(e) => {