From fe693f613a23452e68589a4337863f217cc57930 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 11 May 2026 23:31:36 +0300 Subject: feat: add optional pane border labels --- src/workspace.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/workspace.rs') diff --git a/src/workspace.rs b/src/workspace.rs index e0513f65..54f94e38 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -408,6 +408,12 @@ impl Workspace { self.tabs.iter().find_map(|tab| tab.panes.get(&pane_id)) } + pub fn pane_state_mut(&mut self, pane_id: PaneId) -> Option<&mut PaneState> { + self.tabs + .iter_mut() + .find_map(|tab| tab.panes.get_mut(&pane_id)) + } + pub fn runtime(&self, pane_id: PaneId) -> Option<&PaneRuntime> { self.tabs.iter().find_map(|tab| tab.runtimes.get(&pane_id)) } -- cgit v1.2.3