diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-11 07:33:35 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-11 07:33:35 +0000 |
| commit | efcd36a52c203b082e931ae06cecfb475e61547f (patch) | |
| tree | b0062a93edb85cb15346c126509693d9c104bdf9 /src/screen.rs | |
| parent | Add a plugin callback for global keypresses (diff) | |
| download | sl0ppij-efcd36a52c203b082e931ae06cecfb475e61547f.tar.gz sl0ppij-efcd36a52c203b082e931ae06cecfb475e61547f.tar.xz sl0ppij-efcd36a52c203b082e931ae06cecfb475e61547f.zip | |
Added the set_selectable plugin API function
Diffstat (limited to 'src/screen.rs')
| -rw-r--r-- | src/screen.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.rs b/src/screen.rs index 365d1d7a..5e4d1ae9 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -42,6 +42,7 @@ pub enum ScreenInstruction { ClearScroll, CloseFocusedPane, ToggleActiveTerminalFullscreen, + SetSelectable(PaneId, bool), ClosePane(PaneId), ApplyLayout((Layout, Vec<RawFd>)), NewTab(RawFd), @@ -138,7 +139,7 @@ impl Screen { if self.tabs.len() > 1 { self.switch_tab_prev(); } - let mut active_tab = self.tabs.remove(&active_tab_index).unwrap(); + let active_tab = self.tabs.remove(&active_tab_index).unwrap(); let pane_ids = active_tab.get_pane_ids(); self.send_pty_instructions .send(PtyInstruction::CloseTab(pane_ids)) |
