From edd08e895fc65e07e500a1fe80e88202deae6b8d Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 4 Jul 2026 03:14:44 +0300 Subject: refactor: route pane layout tui actions through runtime wrappers --- src/workspace.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/workspace.rs') diff --git a/src/workspace.rs b/src/workspace.rs index 8216001b..f6060338 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -593,10 +593,12 @@ impl Workspace { true } + #[cfg(test)] pub fn close_active_tab(&mut self) -> bool { self.close_tab(self.active_tab) } + #[cfg(test)] pub fn split_focused( &mut self, direction: Direction, @@ -873,6 +875,7 @@ impl Workspace { } /// Close the focused pane. Returns true if the workspace should close. + #[cfg(test)] pub fn close_focused(&mut self) -> bool { let pane_count = self .active_tab() @@ -1156,6 +1159,7 @@ impl Workspace { self.public_pane_numbers.remove(&pane_id); } + #[cfg(test)] fn close_active_tab_and_report(&mut self) -> bool { if self.tabs.len() <= 1 { return true; -- cgit v1.2.3