diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-03-04 18:55:29 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-03-04 18:55:29 -0500 |
commit | 1b87a061d8fa047eac2bc1dc93e60cd2489e477b (patch) | |
tree | e530c2490994f56e73c994ff31ee9702088ff037 /src/shell/mod.rs | |
parent | e1bfb9bc59a6a97594cb5c2c51cc4ca8ee813a23 (diff) | |
download | nbsh-1b87a061d8fa047eac2bc1dc93e60cd2489e477b.tar.gz nbsh-1b87a061d8fa047eac2bc1dc93e60cd2489e477b.zip |
remove the mutex around exit_info
it is small enough that copying it is not really a big deal
Diffstat (limited to 'src/shell/mod.rs')
-rw-r--r-- | src/shell/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 0f42cde..461e359 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -224,7 +224,8 @@ impl Shell { ); self.scene = self.default_scene(self.focus); } - Event::ChildExit(idx, env) => { + Event::ChildExit(idx, exit_info, env) => { + self.history.entry_mut(idx).exited(exit_info); if self.focus_idx() == Some(idx) { if let Some(env) = env { if self.hide_readline { |