diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-09 21:57:28 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-09 21:59:18 +0300 |
| commit | c45a3b2dc1c2877dd6ee4ea9701d17ff656fc3ca (patch) | |
| tree | 11d614e2361aea23905a02416cdff3eaf08e8f60 /src/workspace.rs | |
| parent | a6cbc9765116844744140fe89ef0633b480568cc (diff) | |
feat(api): return root panes from workspace and tab creation
Diffstat (limited to 'src/workspace.rs')
| -rw-r--r-- | src/workspace.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/workspace.rs b/src/workspace.rs index 447e6061..5fabe47f 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -379,8 +379,7 @@ impl Workspace { )?; self.register_new_pane(tab.root_pane); self.tabs.push(tab); - self.active_tab = self.tabs.len() - 1; - Ok(self.active_tab) + Ok(self.tabs.len() - 1) } pub fn close_tab(&mut self, idx: usize) -> bool { |
