diff options
| author | Jonah Caplan <jonahcaplan@gmail.com> | 2021-02-20 18:19:05 -0500 |
|---|---|---|
| committer | Jonah Caplan <jonahcaplan@gmail.com> | 2021-02-25 01:44:10 -0500 |
| commit | ce54127d7de314e683ed0fefd8be987bbc47e369 (patch) | |
| tree | 0fd91434af3477f9b7c16a61b822537a18abcca2 /src/client | |
| parent | Make fullscreen panes not override the status bar and strider (#209) (diff) | |
| download | sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.tar.gz sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.tar.xz sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.zip | |
add basic tab bar #166
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(), |
