Bump alacritty_terminal to 0.23

This commit is contained in:
Mattias Eriksson 2024-04-05 16:35:17 +02:00 • committed by Jeremy Soller
parent fdf61954de
commit 69c226928f
4 changed files with 20 additions and 8 deletions

View file

@ -276,7 +276,7 @@ impl Terminal {
let window_id = 0;
let pty = tty::new(&options, size.into(), window_id)?;
let pty_event_loop = EventLoop::new(term.clone(), event_proxy, pty, options.hold, false);
let pty_event_loop = EventLoop::new(term.clone(), event_proxy, pty, options.hold, false)?;
let notifier = Notifier(pty_event_loop.channel());
let _pty_join_handle = pty_event_loop.spawn();
@ -876,6 +876,8 @@ impl Terminal {
impl Drop for Terminal {
fn drop(&mut self) {
// Ensure shutdown on terminal drop
self.notifier.0.send(Msg::Shutdown);
if let Err(err) = self.notifier.0.send(Msg::Shutdown) {
log::warn!("Failed to send shutdown message on dropped terminal: {err}");
}
}
}