diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-08-08 16:26:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-08 16:26:47 +0300 |
| commit | 10974c822d607f03e20e9741ec027910f0c1f93a (patch) | |
| tree | 85453f5ba5bcfcc56c37cabdbbced8a7e701cbe3 /src/workspace.rs | |
| parent | 1d6d1fdc6ba8a4fd0385a2071f157504871201a2 (diff) | |
feat(input): add per-pane right-click routing (#2504)
Diffstat (limited to 'src/workspace.rs')
| -rw-r--r-- | src/workspace.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/workspace.rs b/src/workspace.rs index bfda45f6..85377f23 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -1185,6 +1185,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 terminal_id(&self, pane_id: PaneId) -> Option<&TerminalId> { self.tabs.iter().find_map(|tab| tab.terminal_id(pane_id)) } |
