fmt
This commit is contained in:
parent
685e8d7007
commit
0122cd61c5
6 changed files with 25 additions and 24 deletions
|
@ -220,15 +220,16 @@ impl TerminalPanel {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
fn new_terminal(workspace: &mut Workspace, _: &workspace::NewTerminal, cx: &mut ViewContext<Workspace>) {
|
||||
fn new_terminal(
|
||||
workspace: &mut Workspace,
|
||||
_: &workspace::NewTerminal,
|
||||
cx: &mut ViewContext<Workspace>,
|
||||
) {
|
||||
let Some(this) = workspace.focus_panel::<Self>(cx) else {
|
||||
return;
|
||||
};
|
||||
|
||||
this.update(cx, |this, cx| {
|
||||
this.add_terminal(cx)
|
||||
})
|
||||
this.update(cx, |this, cx| this.add_terminal(cx))
|
||||
}
|
||||
|
||||
fn add_terminal(&mut self, cx: &mut ViewContext<Self>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue