fix(screen): send PaneClosed event to plugins also when closing the whole tab (#3781)
This commit is contained in:
parent
21875bfcd3
commit
c0c59e484d
1 changed files with 8 additions and 0 deletions
|
|
@ -1081,6 +1081,14 @@ impl Screen {
|
||||||
pane_ids.retain(|p| p != suppressed_pane_id);
|
pane_ids.retain(|p| p != suppressed_pane_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let _ = self.bus.senders.send_to_plugin(PluginInstruction::Update(
|
||||||
|
pane_ids
|
||||||
|
.iter()
|
||||||
|
.copied()
|
||||||
|
.map(|p_id| (None, None, Event::PaneClosed(p_id.into())))
|
||||||
|
.collect(),
|
||||||
|
));
|
||||||
|
|
||||||
// below we don't check the result of sending the CloseTab instruction to the pty thread
|
// below we don't check the result of sending the CloseTab instruction to the pty thread
|
||||||
// because this might be happening when the app is closing, at which point the pty thread
|
// because this might be happening when the app is closing, at which point the pty thread
|
||||||
// has already closed and this would result in an error
|
// has already closed and this would result in an error
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue