summaryrefslogtreecommitdiffstats
path: root/src/shell/history/entry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell/history/entry.rs')
-rw-r--r--src/shell/history/entry.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs
index 97e8a7b..ac3a279 100644
--- a/src/shell/history/entry.rs
+++ b/src/shell/history/entry.rs
@@ -341,11 +341,11 @@ impl Entry {
pub async fn finish(
&mut self,
env: Env,
- event_w: tokio::sync::mpsc::UnboundedSender<Event>,
+ event_w: crate::shell::event::Writer,
) {
self.state = State::Exited(ExitInfo::new(env.latest_status()));
self.env = env;
- event_w.send(Event::PtyClose).unwrap();
+ event_w.send(Event::PtyClose);
}
fn exit_info(&self) -> Option<&ExitInfo> {