diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-17 00:05:00 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-17 00:05:00 -0500 |
commit | e7d8a9f7d234cb2b8a6691c5a2e33f2b18776a3d (patch) | |
tree | 84eac0ddc63e529275f48071adfdfefd1cdc1c0a /src/shell/history/entry.rs | |
parent | a537464a915aea2e38c62df041996b8525367bde (diff) | |
download | nbsh-e7d8a9f7d234cb2b8a6691c5a2e33f2b18776a3d.tar.gz nbsh-e7d8a9f7d234cb2b8a6691c5a2e33f2b18776a3d.zip |
simplify environment handling
this temporarily breaks cd history, will fix this soon
Diffstat (limited to 'src/shell/history/entry.rs')
-rw-r--r-- | src/shell/history/entry.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs index 01aad8b..a45d99d 100644 --- a/src/shell/history/entry.rs +++ b/src/shell/history/entry.rs @@ -343,7 +343,7 @@ impl Entry { env: Env, event_w: async_std::channel::Sender<Event>, ) { - self.state = State::Exited(ExitInfo::new(*env.latest_status())); + self.state = State::Exited(ExitInfo::new(env.latest_status())); self.env = env; event_w.send(Event::PtyClose).await.unwrap(); } |