diff options
| author | Denis Maximov <denismaximov98@gmail.com> | 2021-02-25 09:45:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-25 09:45:23 +0200 |
| commit | f9441bce99a80b95204ea2016481c24cee909d51 (patch) | |
| tree | 0fd91434af3477f9b7c16a61b822537a18abcca2 /src/client | |
| parent | Make fullscreen panes not override the status bar and strider (#209) (diff) | |
| parent | add basic tab bar #166 (diff) | |
| download | sl0ppij-f9441bce99a80b95204ea2016481c24cee909d51.tar.gz sl0ppij-f9441bce99a80b95204ea2016481c24cee909d51.tar.xz sl0ppij-f9441bce99a80b95204ea2016481c24cee909d51.zip | |
Merge pull request #204 from jcaplan/tab-bar-166
add tab toolbar
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/tab.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs index bdbf7db1..bf096367 100644 --- a/src/client/tab.rs +++ b/src/client/tab.rs @@ -50,6 +50,7 @@ fn split_horizontally_with_gap(rect: &PositionAndSize) -> (PositionAndSize, Posi pub struct Tab { pub index: usize, + pub position: usize, panes: BTreeMap<PaneId, Box<dyn Pane>>, panes_to_hide: HashSet<PaneId>, active_terminal: Option<PaneId>, @@ -168,6 +169,7 @@ impl Tab { // FIXME: Too many arguments here! Maybe bundle all of the senders for the whole program in a struct? pub fn new( index: usize, + position: usize, full_screen_ws: &PositionAndSize, mut os_api: Box<dyn OsApi>, send_pty_instructions: SenderWithContext<PtyInstruction>, @@ -191,6 +193,7 @@ impl Tab { }; Tab { index, + position, panes, max_panes, panes_to_hide: HashSet::new(), |
