Correct comments
This commit is contained in:
parent
35dcdc686c
commit
41e61a10b4
1 changed files with 2 additions and 1 deletions
|
|
@ -1103,7 +1103,7 @@ impl Application for App {
|
|||
// Remove item
|
||||
tab_model.remove(entity);
|
||||
|
||||
// If that was the last tab, close window
|
||||
// If that was the last tab, close current pane
|
||||
if tab_model.iter().next().is_none() {
|
||||
if let Some((_state, sibling)) =
|
||||
self.pane_model.panes.close(self.pane_model.focus)
|
||||
|
|
@ -1111,6 +1111,7 @@ impl Application for App {
|
|||
self.terminal_ids.remove(&self.pane_model.focus);
|
||||
self.pane_model.focus = sibling;
|
||||
} else {
|
||||
//Last pane, closing window
|
||||
return window::close(window::Id::MAIN);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue